]> git.vpit.fr Git - perl/modules/Regexp-Wildcards.git/blob - samples/wc2re.pl
4c6c3404e80d882c9184f9eb979a99f5e5957cc8
[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
10 print "For this system, type is $type\n";
11 print $_, ' => ', wc2re($_ => $type), "\n" for @ARGV;