in reply to Re^2: Print name of array
in thread Print name of array

And what would you return for this?
@AoA = ([qw/Mercury Venus Earth Mars/], [qw/1 1 2 3 5 8 13 21/]);
From where should Perl know it's planets and fibonacci?

Update: Also consider

@x = (1, 2, 3); *y = *x; my @AoA = (\@x, \@y);
Is it @x or @y?

Replies are listed 'Best First'.
Re^4: Print name of array
by Saved (Beadle) on Dec 06, 2011 at 13:35 UTC
    my @AoA = ([qw/Mercury Venus Earth Mars/], [qw/1 1 2 3 5 8 13 21/]); for my $index (0 .. $#AoA) { print "$index\t@{ $AoA[$index] }\n"; }
    0 Mercury Venus Earth Mars 1 1 1 2 3 5 8 13 21