Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^7: last in a do while loop (for (;;))

by JimmyDa (Initiate)
on Jan 25, 2008 at 16:10 UTC ( #664304=note: print w/replies, xml ) Need Help??

in reply to Re^6: last in a do while loop (for (;;))
in thread last in a do while loop

Did it here as I didn't feel like it needed a completely new topic. I'll probably stick with the bare block in the future. The data is generated by a program that does some artificial splitting of the lines if it has over 80 characters in a line so... to do anything useful with the data the lines need to be reordered. Thanks both of u.
  • Comment on Re^7: last in a do while loop (for (;;))

Replies are listed 'Best First'.
Re^8: last in a do while loop (for (;;))
by ikegami (Patriarch) on Jan 26, 2008 at 02:32 UTC
    redo is usually good for that.
    while (<$fh>) { chomp; if (... && !eof($fh)) { $_ .= <$fh>; redo; } ... }

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-10-04 13:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found