]> git.vpit.fr Git - perl/modules/Regexp-Wildcards.git/blobdiff - samples/wc2re.pl
Importing Regexp-Wildcards-0.05.tar.gz
[perl/modules/Regexp-Wildcards.git] / samples / wc2re.pl
index 4c6c3404e80d882c9184f9eb979a99f5e5957cc8..4a799464ec5eaa8b65b58417fe31258b5e9d90fb 100755 (executable)
@@ -6,6 +6,11 @@ use warnings;
 use Regexp::Wildcards qw/wc2re/;
 
 my $type = (grep $^O eq $_, qw/dos os2 MSWin32 cygwin/) ? 'win32' : 'unix';
-
 print "For this system, type is $type\n";
-print $_, ' => ', wc2re($_ => $type), "\n" for @ARGV;
+
+{
+ local $Regexp::Wildcards::CaptureBrackets = 1;
+ local $Regexp::Wildcards::CaptureAny = -1;
+ print $_, ' => ', wc2re($_ => $^O), "\n" for @ARGV;
+}
+