in reply to importing all the values stored in an HoH into an array
@newarray = $hash{ $w1 }->{ $w2 }->{ words };Be aware that after initializing your hash as you did, this will return a hash ref. You can pull out the data like this:
as an example.$hashref = $hash{ $w1 }->{ $w2 }->{ words }; foreach my $k (keys %$hashref) { print " * $k: $hashref->{$k}\n"; }
Perhaps if you want an array, perhaps all you want is the keys?
|
|---|