in reply to Dereferencing an array of arrays

You might want this:

my $array_ref = [ \@array1, \@array2, \@array3 ]; print $#{$array_ref};

Your @array_ref is not a reference to an array. It's an array full of references. The $array_ref I've shown above is an array reference.

Replies are listed 'Best First'.
Re^2: Dereferencing an array of arrays
by smist (Acolyte) on Oct 22, 2007 at 18:08 UTC
    Thanks Kyle. That helped to clear it up for me.