![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^5: Order of execution of functions in list ( \(shift @_ ) reference to alias \$_[0] references original )by Anonymous Monk |
on Sep 16, 2013 at 03:12 UTC ( #1054212=note: print w/replies, xml ) | Need Help?? |
It's an emergent behaviour; it's not by design. What's that mean (important why)? It goes back far enough (5.8 at least) and its in t/op/sub_lval.t update: since 2001 so it emerged? long ago :) OTOH, a reference to an alias takes a reference to the original and incrementing tat referenced value increments the original -- can't see any aliasing magic being preserves, references reference
In Section
Seekers of Perl Wisdom
|
|