in reply to Re: Count of HoA elements
in thread Count of HoA elements
This is wrong. There is absolutely no reason to iterate the hash to count the elements!
c:\test>p1 Perl> %a = 'a' ..'z';; Perl> print scalar values %a;; 13 [0] Perl> print scalar keys %a;; 13
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Count of HoA elements
by ikegami (Patriarch) on Jan 19, 2007 at 20:31 UTC |