in reply to Copying hash contents, from nested hash (was: a simple one)
The way I'd go about doing that (I'm sure there's a better way) would be something like .. (untested code)
my $servicehash; foreach my $cookie (keys %hash) { foreach my $service (keys %{$hash{$cookie}}) { $servicehash{$service} = $hash{$cookie}{$service}; } }
That should leave you with a hash of values keyed on service.
Hope that helps ..
--Foxcub
|
|---|