in reply to importing all the values stored in an HoH into an array

hi chinamox,

I think you need more or less this:

my @array=(); for my $word (keys %{$has{$w1}->{$w2}}) { push @array, ($word) x $hash{$w1}->{$w2}->{$word}; }


Replies are listed 'Best First'.
Re^2: importing all the values stored in an HoH into an array
by chinamox (Scribe) on Oct 31, 2006 at 14:30 UTC

    Thank you for your help. I ended up using something very similar to your example.

    cheers

    -mox