![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Multi-Dimensional Arrays and Array Referencesby Leudwinus (Scribe) |
on Nov 16, 2020 at 17:59 UTC ( #11123702=note: print w/replies, xml ) | Need Help?? |
Hi choroba, Thank you very much for your reply. If I may trouble you a bit more, I have a few more questions: 1. When should I store my data in a reference such as my $ref = [[1, 2, 3], [4, 5, 6]];versus an array my @array = ([1, 2, 3], [4, 5, 6]);What is the difference? 2. In both your first example using the reference, how come $ref->[$_] can’t be written as $ref[$_]? Gratias tibi ago
In Section
Seekers of Perl Wisdom
|
|