Help for this page

Select Code to Download


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