Perl, array referencing
- by Mike
Consider this Perl code
my @a=[[1]];
print $a[0][0] . "\n";
**output**
ARRAY(0x229e8)
Why does it print an Array instead of 1? I would have expected @a to create an array of size 1 with a reference to a second array containing only one element, 1