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

Re^2: How to process multiple input files?

by rnaeye (Friar)
on May 22, 2011 at 20:08 UTC ( [id://906196]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://906196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found