in reply to Referencing dynamic hash elements
Your problem is the line
foreach my $hashKey (sort keys $hash{$processKey})
$hash{$processKey} is a reference to a hash and keys requires an actual hash. Therefore, all you need to do is to dereference the hash reference before passing it to keys
foreach my $hashKey (sort keys %{$hash{$processKey}})
It's also worth pointing out that had you been running with -w and use strict then perl would have told you what the problem was.
|
|---|