while(<>) { //do stuff } #### open FST, $ARGV[0]; while() { //do stuff } while(<>) { // other stuff with all files but $ARGV[0] }