Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The other methods listed here are probably more efficient, especially if you're going to do something with the lines individually later. However, since you're preloading the file into memory as it is, here's something simpler:
You might want to check out Text::Wrap for reflowing it. stephen Update: Thanks to japhy for pointing out a mental misstep on my part... Update 2: Thanks to broquaint for a reminder on local()... In reply to Re: Look ahead and join if the line begins with a +
by stephen
|
|