http://www.perlmonks.org?node_id=800246


in reply to Re: perl pattern match for end of string using STDIN and chomp
in thread perl pattern match for end of string using STDIN and chomp

it seems pretty clear that the $1 in the code is falling through since the second regex is not matching, so i will use some of the code examples to avoid that in the future. However, the big question is why the second regex does not match with a chomped <STDIN> but will match a chomped $ARGV[0], it only appears to be an issue with 5.8.0, and appears to have been fixed in atleast 5.8.3, can anyone explain this behavior, may need some ammo to get our Linux support to upgrade our standard Perl version