melguin has asked for the wisdom of the Perl Monks concerning the following question:
The error code tells me that it's not a hash. What is the correct syntax?foreach my $pid (keys %$matches) { foreach my $key (keys $$matches{$pid}) { print "$pid:$key:$$matches{$pid}{$key}\n"; } }
thanks as always,
melguin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: keys of hash of reference to hash
by sauoq (Abbot) on Jan 28, 2003 at 00:55 UTC | |
|
Re: keys of hash of reference to hash
by elusion (Curate) on Jan 28, 2003 at 00:59 UTC | |
by melguin (Pilgrim) on Jan 28, 2003 at 01:03 UTC | |
|
Re: keys of hash of reference to hash
by Ovid (Cardinal) on Jan 28, 2003 at 01:18 UTC |