sweetblood has asked for the wisdom of the Perl Monks concerning the following question:
should do it but I get "Can't use string ("###") as an array ref while "strict refs" in use." I know I can get the total by going through the hash and counting the number of elements for each, but would prefer not to.my $count = scalar @{ values %hash };
TIA
Sweetblood
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count of HoA elements
by Fletch (Bishop) on Jan 19, 2007 at 20:12 UTC | |
| |
|
Re: Count of HoA elements
by ikegami (Patriarch) on Jan 19, 2007 at 20:15 UTC | |
by Jenda (Abbot) on Jan 19, 2007 at 20:34 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2007 at 20:29 UTC | |
by ikegami (Patriarch) on Jan 19, 2007 at 20:31 UTC | |
|
Re: Count of HoA elements
by BrowserUk (Patriarch) on Jan 19, 2007 at 20:06 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |