Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Legacy use of splice() as lvalueby moritz (Cardinal) |
on Feb 15, 2008 at 09:57 UTC ( [id://668121]=note: print w/replies, xml ) | Need Help?? |
My guess is that somebody assumed the same semantics for splice as substr implements, which can be used as an lvalue.
So the old behaviour is roughly equivalent to die "That sub should never be called, and is not tested";, while the new one modifies @_.
In Section
Seekers of Perl Wisdom
|
|