in reply to clarification...
in thread hash of lists - hash of hashes
(You can use values in place of the slice in 5.6, but I'm not there yet.)for (@HoL{keys %HoL}) { $_ = {map {$_, 1} @$_}; }
If you really need a copy, that's a little odder, like this:
Untested, but I think I got my indirections right.%HoH = map { $_ => {map { $_, 1 } @{$HoL{$_}}} } keys %HoL;
-- Randal L. Schwartz, Perl hacker
|
|---|