On 07/25/2006 08:32 PM, macromedia wrote:
Hi,

I can't seem to get my script to sort properly. Below is my code [...]
                   sort { $a->[0] cmp $b->[0] || $a->[7] <=> $b->[7] }
[...]

"Cmp" does string comparisons. Use "<=>" for numeric
comparisons. Read "perldoc perlop".







--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to