http://qs321.pair.com?node_id=663945

Sixtease has asked for the wisdom of the Perl Monks concerning the following question:

Hello everybody,

Please, can there be a difference between what the following snippet would return on perl5.8 and perl5.6? I'm getting test failures from cpan testers (God bless them) on perl5.6, where it seems to return 1 where $_[0] has no digits.

my @rv = $_[0] =~ /^([0-9]+)$/; return @rv[0 .. $#rv];
use strict; use warnings; print "Just Another Perl Hacker\n";