$length++ if $_->[2] for @select;
Unfortunately, Perl doesn't understand this "double modifier" syntax (syntax error at..., near "] for "), so it would have to be:
do { $length++ if $_->[2] } for @select;
In reply to Re^2: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |