On Mon, Apr 26, 2004 at 10:14:51AM -0500, Eric Lease Morgan ([EMAIL PROTECTED]) wrote: > What should I do to my first program (foo.pl) so it can accept command > line input as well as input from STDIN?
How are you reading from the files? Opening them yourself one at a time? Don't. Use the magic filehandle. See my talk "A Field Guide To The Perl Command Line" on http://petdance.com/perl/. It was also an article in The Perl Journal a few months back. I'll be presenting the talk at YAPC this year. http://www.yapc.org/America/ xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance