Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: advancing in file read

by apl (Monsignor)
on May 17, 2010 at 10:34 UTC ( #840325=note: print w/replies, xml ) Need Help??


in reply to Re^4: advancing in file read
in thread advancing in file read

It is if the same processing must be applied to every line in the file, even if said line was the second line of an earlier piece of processing.

Requiring the file be read at the top of the loop denies you the ability to reprocess the second line. The OP had said

And is there a way to advance the file handle so it doesn't re-read the next line in the foreach loop?

Replies are listed 'Best First'.
Re^6: advancing in file read
by ikegami (Pope) on May 17, 2010 at 14:43 UTC

    It's my understanding that the OP doesn't want to re-read the line because he doesn't want to reprocess it, not for efficiency purposes.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840325]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-12-15 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (417 votes). Check out past polls.

    Notices?