File: Util.pm

package info (click to toggle)
libmenlo-perl 1.9019-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 220 kB
  • sloc: perl: 352; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Menlo::Util;
use strict;

use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(WIN32);

use constant WIN32 => $^O eq 'MSWin32';

if (WIN32) {
    require Win32::ShellQuote;
    *shell_quote = \&Win32::ShellQuote::quote_native;
} else {
    require String::ShellQuote;
    *shell_quote = \&String::ShellQuote::shell_quote_best_effort;
}

1;