in reply to Re: Re: splitting array values
in thread splitting array values

Podmaster, Heres whats happening. Ive got a scalar full of number values, some negative. It is stored in $sorted. From there the code goes like this
foreach my $sorted(@sorted){ $scorehash{$sorted} = undef; } print Dumper(%scorehash); my @ranks2 = sort { $b <=> $a } keys %scorehash; print Dumper(\@ranks2); print $ranks2[0];
the output is all the values not in order for both printings. Thanks

Replies are listed 'Best First'.
Re: splitting array values
by dakedesu (Scribe) on Jun 01, 2004 at 03:32 UTC

    I don't know what you are trying to do with that code... also work on your tabs. They kind of confuse the code. Espicially when that forloop is only one line.

    -- Jamie Payne