laziness, impatience, and hubris | |
PerlMonks |
Re^3: Array wierdnessby pryrt (Abbot) |
on Apr 25, 2022 at 15:34 UTC ( [id://11143276]=note: print w/replies, xml ) | Need Help?? |
FWIW, assigning the numbers to the arrays in separate lines makes no difference. This is because your code's comments are wrong:
This does not create 25x25 arrays, this creates 1x25 arrays. Below shows a 1x25 (what you have) vs a 2x5:
or this one populates a 25x25 array, then overrides 3 slots: <Reveal this spoiler or all in this thread>
In Section
Seekers of Perl Wisdom
|
|