Keep It Simple, Stupid | |
PerlMonks |
Re: Keeping the first occurence of a pattern, and removing the other occurencesby johngg (Canon) |
on Aug 04, 2011 at 16:55 UTC ( [id://918592]=note: print w/replies, xml ) | Need Help?? |
Bear in mind that the "^L" that you are seeing is probably a text representation of a form feed control character so you might need to change your input record separator to something like "\cL", IIRC. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|