Help for this page

Select Code to Download


  1. or download this
        sub depth {
            my $arr = shift;
            return 1 unless ref $$arr[0] eq 'ARRAY';
            return depth( $$arr[0] ) + 1;
        }