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 reply to Re^4: A list assignment gotcha (Updated)
by jcb
in thread Not understanding 2 sentences in perldoc
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |