or even
$length += !!$_->[2] for @select;
:)
(the !! is only required if you don't want to make assumptions that a "true" value in $_->[2] is always represented as 1)
In reply to Re^4: Length of multidimensional array based on the particular index value
by Eliya
in thread Length of multidimensional array based on the particular index value
by k_manimuthu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |