Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: How to process multiple input files?

by jwkrahn (Monsignor)
on May 23, 2011 at 06:51 UTC ( #906248=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?

He's always have a line-count of 1, since he's slurping the files.

$. contains the current record count, and since each file is one record it will be incremented for each file and so will not always be 1.    Unless of course you reset $. or close ARGV at the end of each file.

Replies are listed 'Best First'.
Re^4: How to process multiple input files?
by jaredor (Curate) on May 23, 2011 at 12:28 UTC

    Thanks for pointing this out. I have learned from you too.

    Furthermore, you've inspired me to reread the links I posted. Now I'm going back to strike kill my wrong summation of those links, which did have the right info, even if I didn't read them correctly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906248]
Corion has to work on his mood today.
[Corion]: I have to write at least one not so nice mail, give a stern word to some colleagues who took changes into production without getting approval and actually get some work done...
[choroba]: too busy to work on my mood :-(
choroba having "blue pipeline duty" this week
[Corion]: choroba: Exactly that, but I prefer to keep an eye on my mood nowadays...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-03-29 07:31 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (344 votes). Check out past polls.