note
Leudwinus
<p>Hi choroba,</p>
<p>Thank you very much for your reply. If I may trouble you a bit more, I have a few more questions:</p>
<p>1. When should I store my data in a reference such as</p>
<code>my $ref = [[1, 2, 3], [4, 5, 6]];</code>
<p>versus an array</p>
<code>my @array = ([1, 2, 3], [4, 5, 6]);</code>
<p>What is the difference?</p>
<p>2. In both your first example using the reference, how come <code>$ref->[$_]</code> can’t be written as <code>$ref[$_]</code>?</p>
<p>Gratias tibi ago
<br>
<i>Leudwinus</i></p>
11123691
11123697