in reply to Re: How do I get the position of the same value in array or list.
in thread How do I get the position of the same value in array or list.

Zaxo, you mean the right thing, but it should be @{ $hash{key} } instead of @$hash {key}, so:
push @{ $hsh{$data[$_]} }, $_ for 0..$#data;