- or download this
perl ./script.pl $(ls *.txt | sed 's/^/-file /')
- or download this
perl ./script.pl -file myfile.txt -file yourfile.txt -file ourfile.txt
- or download this
#!/usr/bin/perl
use strict;
...
my @globs = map {glob ($_)} @Files;
print "glob: $_\n" for @globs;
- or download this
./script.pl -file "*.txt"
- or download this
./script.pl -file "*.txt"
- or download this
myfile.txt
yourfile.txt
ourfile.txt
- or download this
./script.pl -file myfile.txt -file yourfile.txt -file ourfile.txt
- or download this
myfile.txt
yourfile.txt
ourfile.txt