In addition to what everyone else said, if you use the '<>' operator, you may not even have to deal with @ARGV explicitly (and input should be processed in the order specified on the command line), though in that case you may want to know about '$ARGV' and/or the -n or -p command line parameters. See perldocs
.