hmm some brainstorming
$ar->[$x][$y][$z]->push("element") than push @{$ar->[$x][$y][$z]}, "element"
The flow is in one left-to-right direction and doesn't jump around, the association is much more evident.
Cheers Rolf
¹) yes I know I could use "for", "each" was just an example, but please try to design a function which is restricted to arrayrefs, thats really far more complicated.
UPDATE: corrected code and added further explanations in italics.
In reply to Re^2: What are the drawbacks of autobox?
by LanX
in thread What are the drawbacks of autobox?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |