Syntactic Confectionery Delight | |
PerlMonks |
Re: multiple OR match failsby jwkrahn (Abbot) |
on Jan 31, 2012 at 03:33 UTC ( [id://950870]=note: print w/replies, xml ) | Need Help?? |
Because you undef $/ inside the loop that means that the first time through the loop $_ will contain only the first line of the file and the second time through the loop $_ will contain all the rest of the file. Did you really want to process the file in two chunks like that?
In Section
Seekers of Perl Wisdom
|
|