while (<@ARGV>) { ... } #### while (<>) { ... } #### your_script file1 file2 file3 cat file1 file2 file3 | your_script #### other_process | your_script