more useful options | |
PerlMonks |
Re: perl pattern match for end of string using STDIN and chompby AnomalousMonk (Archbishop) |
on Oct 08, 2009 at 21:48 UTC ( [id://800105]=note: print w/replies, xml ) | Need Help?? |
I tend to agree with the suggestions of others that the second regex in the chomped <STDIN> section of the OPed code is simply failing to match, and the previous value of $1 is persisting.
Try inserting the statement
In Section
Seekers of Perl Wisdom
|
|