We don't bite newbies here... much | |
PerlMonks |
Re^4: A list assignment gotcha (Updated)by jcb (Parson) |
on Jul 31, 2020 at 01:32 UTC ( [id://11120102]=note: print w/replies, xml ) | Need Help?? |
Great work by both of you, and the possible syntax tricks nicely show TIMTOWTDI, but the original motive for trying LIST += LIST was a hoped-for performance gain from the interpreter completing the whole set in one opcode, instead of add...add...add.... I suspect that overloaded objects like this will cause problems if used in inner loops. :-) Neat tricks, though...
In Section
Seekers of Perl Wisdom
|
|