wait got it, you are comparing the values which are always 1.
for my $k (@vals) { $hsh->{$k} = 1; }
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: Sorting Question
by LanX
in thread Sorting Question
by boerni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |