in reply to Re: Length of 2-dimensional array
in thread Length of 2-dimensional array
This could also be written as:
my $a; # a 2d-array my $count=0; for (@$a){ $count += $#$_+1; } print "My 2D-array is $count long\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Length of 2-dimensional array
by extremely (Priest) on Apr 06, 2001 at 00:40 UTC | |
Re:{3} Length of 2-dimensional array
by jeroenes (Priest) on Apr 06, 2001 at 00:55 UTC |
In Section
Seekers of Perl Wisdom