in reply to Re^2: Array length with range operator
in thread Array length with range operator
Also works for "highest index" rather than "number of elements":
>perl -wMstrict -lE "say scalar $#{[ 'aa' .. 'zz' ]}; " 675
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Array length with range operator
by hdb (Monsignor) on Jun 06, 2013 at 09:35 UTC | |
by AnomalousMonk (Archbishop) on Jun 06, 2013 at 19:04 UTC | |
by hdb (Monsignor) on Jun 07, 2013 at 07:53 UTC |