|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Parsing file and joining content into stringby Old_Gray_Bear (Chancellor) |
| on Jan 15, 2013 at 18:20 UTC ( #1013436=note: print w/ replies, xml ) | Need Help?? |
|
Take a look at the special variable $/ AKA $INPUT_RECORD_SEPARATOR. If you set it to 'END', then your read will return all the data a paragraph at a time. Slice 'n' dice of the paragraph is left as an exercise.
---- OGB
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||