in reply to Re^3: A list assignment gotcha (Updated)
in thread Not understanding 2 sentences in perldoc
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: A list assignment gotcha (Updated)
by LanX (Saint) on Jul 31, 2020 at 02:20 UTC | |
by jcb (Parson) on Aug 01, 2020 at 02:10 UTC | |
by LanX (Saint) on Aug 01, 2020 at 09:26 UTC |