in reply to Finding the length of an array of arrays

maybe this is what your looking for (recursive array counter) :)
sub rscalar { my($count); map { $count++; if (ref eq "ARRAY") { $count = $count + rscalar(@{$_}); } } @_; return $count; }



lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/