in reply to hash count
If you don't want to grep for defined values, delete the values instead of setting them to undef, then you can the output of scalar %hash.
See perldata on what exactly the scalar value of a hash is.
Update: fixed syntax error. Sorry for not writing the update notice in the first place.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash count
by kyle (Abbot) on Mar 25, 2009 at 14:51 UTC | |
by AnomalousMonk (Archbishop) on Mar 25, 2009 at 15:22 UTC | |
by moritz (Cardinal) on Mar 25, 2009 at 15:24 UTC | |
by moritz (Cardinal) on Mar 25, 2009 at 15:15 UTC |