]> git.vpit.fr Git - perl/modules/Regexp-Wildcards.git/blob - samples/wc2re.pl
Importing Regexp-Wildcards-0.05.tar.gz
[perl/modules/Regexp-Wildcards.git] / samples / wc2re.pl
1 #!/bin/env perl
2
3 use strict;
4 use warnings;
5
6 use Regexp::Wildcards qw/wc2re/;
7
8 my $type = (grep $^O eq $_, qw/dos os2 MSWin32 cygwin/) ? 'win32' : 'unix';
9 print "For this system, type is $type\n";
10
11 {
12  local $Regexp::Wildcards::CaptureBrackets = 1;
13  local $Regexp::Wildcards::CaptureAny = -1;
14  print $_, ' => ', wc2re($_ => $^O), "\n" for @ARGV;
15 }
16