in reply to Re: Scientific notation problem
in thread Scientific notation problem

I did use something similar. I said:
foreach(sort byval keys %index) { ... } sub byval { return ($score{$a} <=> $score{$b}) }
Is there a way to force numerical evaluation?

Replies are listed 'Best First'.
Re^3: Scientific notation problem
by tadman (Prior) on Aug 13, 2001 at 21:06 UTC
    That should do it, except that you're evaluating %score on the keys of %index, which may just be an error in your example, or something that should work, but isn't clear from your example.

    You can "force numerical evaluation" with the <=> operator.