Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to process multiple input files?

by rnaeye (Pilgrim)
on May 22, 2011 at 20:08 UTC ( #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
Node Status?
node history
Node Type: note [id://906196]
help
Chatterbox?
[tye]: We use auditd for security monitoring. So we can rely on auditing being enabled. I'm not sure who would want to not be able to audit. Maybe some VM inside another system with audit?
[SuicideJunkie]: spies would want a system to not be able to audit.
[erix]: spies should use a type-writer, no power needed, no auditable
[erix]: if all else fails, eat the paper

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-06-23 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (555 votes). Check out past polls.