Help for this page

Select Code to Download


  1. or download this
    my_script.pl  *.foo   # (matches all files with a ".foo" extension"
    
    ...
    
    my_script.pl this_long_name.txt that_other_long_name.xml
    # where hitting <tab> after "thi" and "tha" completes each name automa
    +tically
    
  2. or download this
    #!/usr/bin/perl
    ...
    printf "There were %d files mentioned on the command line:\n", scalar 
    +@ARGV;
    print join "\n", @ARGV, '';
    ...