|Welcome to the Monastery|
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??|
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 asmy $ref = [[1, 2, 3], [4, 5, 6]];
versus an arraymy @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