grep in scalar context... evil? It works.
say scalar grep{ $_->[2] } @select;
There's also 'for'
my $length; $length++ if $_->[2] for @select; say $length;
Dave
In reply to Re: Length of multidimensional array based on the particular index value
by davido
in thread Length of multidimensional array based on the particular index value
by k_manimuthu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |