![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^6: enumerating values for slopesby farang (Chaplain) |
on Sep 24, 2014 at 02:07 UTC ( #1101736=note: print w/replies, xml ) | Need Help?? |
You need to push on @AoA a reference to @vector:That way is buggy, though, as the redefinition of @vector will clobber the first pushed array element. This is explained under COMMON MISTAKES in perldsc, "taking a reference to the same memory location repeatedly". So both lines above should instead use a square bracket reference.
In Section
Seekers of Perl Wisdom
|
|