Don't ask to ask, just ask | |
PerlMonks |
Re: Difficulty using $/ as delimiterby mbethke (Hermit) |
on Jun 09, 2012 at 17:51 UTC ( [id://975323]=note: print w/replies, xml ) | Need Help?? |
If I understand this correctly, you have a file with multi-line records terminated by '//\n'.
Like this? Then when you change $/ to your record separator, the diamond operator will give you a whole record. And now you need the individual lines within each? I'd say just split on /\n/, but I have a feeling that's not exactly what you wanted. Can you clarify?
In Section
Seekers of Perl Wisdom
|
|