in reply to Re: regexp list return 5.6 vs 5.8
in thread regexp list return 5.6 vs 5.8
It's not quite the same ^^. @rv is an array and in scalar context evaluates to the number of the emelents. Slicing turns it into a list and thus gives the last element instead.
use strict; use warnings; print "Just Another Perl Hacker\n";
In Section
Seekers of Perl Wisdom