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