in reply to Re: size of an array ref
in thread size of an array ref

that makes sense...I might have a reference to a reference to an array...I've tried a lot of permutations and not gotten '3'...is it possible to get the size of a ref to a ref?

Replies are listed 'Best First'.
Re^3: size of an array ref
by JavaFan (Canon) on Feb 24, 2012 at 13:24 UTC
    @array; @$arrayref; @$$arrayrefref; @$$$arrayrefrefref; @$$$$arrayrefrefrefref; @$$$$$arrayrefrefrefrefref; @$$$$$$arrayrefrefrefrefrefref; ... etc ...
Re^3: size of an array ref
by brx (Pilgrim) on Feb 24, 2012 at 21:12 UTC
    $a= [1..10];$b=\$a;$c=\$b; $d=\$c;$e=\$d; $e=$$e while (ref($e) eq "REF"); print scalar @$e;