in reply to How to find length of $hash_ref
my $num_keys = keys %$prop_ref;
If you instead want to determine string lengths of keys or values, you can use length.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to find length of $hash_ref
by priyankgandhi (Novice) on May 05, 2009 at 00:11 UTC | |
by salazar (Scribe) on May 05, 2009 at 00:24 UTC |