in reply to Re: Split results of Map function
in thread Split results of Map function

Hi All
Thanks all for the input.
I had not appreciated that there could be multiple keys with the same value.
I need to be able to keep all duplicate numbers in the hash. Is there a way of switching the data between key / value as the text is actually unique and would be ideal as the key.
RegardGavin

Replies are listed 'Best First'.
Re^3: Split results of Map function
by rhesa (Vicar) on Apr 08, 2006 at 20:24 UTC
    That's simple: just say $hash{$v} = $k instead of $hash{$k} = $v :)