in reply to scalar subkeys %hash ?
You need to dereference the hash:
%hash = ( key1 => { subkey1 => 'value1', subkey2 => 'value2', subkey3 => 'Ovid' } ); print scalar keys %{$hash{ key1 }};
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: scalar subkeys %hash ?
by crazysniffable (Acolyte) on Jun 14, 2001 at 03:51 UTC |