Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: How to process multiple input files?

by John M. Dlugosz (Monsignor)
on May 23, 2011 at 00:15 UTC ( [id://906217] : note . print w/replies, xml ) Need Help??


in reply to Re^2: How to process multiple input files?
in thread How to process multiple input files?

Ah, you are only reading once. I see what you were asking now.

Making a while loop out of it like so:

my $line; while (defined ($line = <>)) {
will repeat until there are no files left.