in reply to regexp list return 5.6 vs 5.8
i don't have access to 5.6 at the moment and so cannot investigate your question, but just as a matter of curiosity, why use the expression return @rv[ 0 .. $#rv ]; when it seems to me it will return exactly the same thing as return @rv; and when the latter expression does not involve the behavior of the .. range operator in the case where the terminal value is less than the initial value, i.e., 0 .. -1 in the case of $#rv when the array @rv is empty?
(you haven't been messing with $[ have you?)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regexp list return 5.6 vs 5.8
by Anonymous Monk on Jan 24, 2008 at 08:27 UTC | |
Re^2: regexp list return 5.6 vs 5.8
by Sixtease (Friar) on Jan 24, 2008 at 07:50 UTC | |
by shmem (Chancellor) on Jan 24, 2008 at 08:31 UTC |
In Section
Seekers of Perl Wisdom