"be consistent" | |
PerlMonks |
Re: Input record separatorby Zaxo (Archbishop) |
on Mar 18, 2005 at 10:01 UTC ( [id://440654]=note: print w/replies, xml ) | Need Help?? |
Your wish won't work, because the input record seperator cannot be treated as a regular expression. You have a pretty common situation, where records are marked by a prefix instead of a postfix seperator. I think the easiest way to deal with that is to set local $/ to "\n>" and take the first record as a special case. Call chomp to remove the "\n>" from the end of the records. After Compline,
In Section
Seekers of Perl Wisdom
|
|