in reply to Re^2: Extracting fields
in thread Extracting fields

I agree with bobf, stripping the record sperarators and then trying to put them back is the wrong way to approach the problem.

Much better would be setting $/="\n10"; to slurp the combined records in one block at a time retaining the newlines. These then give you a very easy way to further break up the combined records.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon