Trey Harris wrote: > > Oops, caught my own mistake... > Because $_ is always the topic, which is always the first parameter to a > block, which in subroutines is @_[0], right? So in a sub, $_ == @_[0]. > The only question I have is if you modify @_ with a shift, does $_ > continue to point at the old @_[0], or does it now point at the new @_[0], > the original @_[1]?
The above seems to me to be very confused. My understanding of Perl 5 is that $_ != @_[0] Shifting @_ has nothing to do with the value of $_ in any context I am aware of. And I've heard nothing about Perl 6 that changes that. Things about Perl 6 that are different than Perl 5 with respect to $_ include: $_ becomes lexical $_ gets aliased to the first topic of a given clause (hence changes value more often, but the lexical scoping helps reduce that impact) > Trey -- Glenn ===== Remember, 84.3% of all statistics are made up on the spot.