Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-05-23 15:28 GMT
Find Nodes?
    Voting Booth?