in reply to Re: Length of multidimensional array based on the particular index value
in thread Length of multidimensional array based on the particular index value
$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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Length of multidimensional array based on the particular index value
by BrowserUk (Patriarch) on Feb 24, 2011 at 10:33 UTC | |
by jwkrahn (Abbot) on Feb 24, 2011 at 10:48 UTC | |
|
Re^3: Length of multidimensional array based on the particular index value
by davido (Cardinal) on Feb 24, 2011 at 10:34 UTC | |
by jwkrahn (Abbot) on Feb 24, 2011 at 10:40 UTC | |
by Eliya (Vicar) on Feb 24, 2011 at 10:43 UTC |