http://qs321.pair.com?node_id=906196


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

It only processes first file in the command line.

  • Comment on Re^2: How to process multiple input files?

Replies are listed 'Best First'.
Re^3: How to process multiple input files?
by John M. Dlugosz (Monsignor) on May 23, 2011 at 00:15 UTC
    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.