As default it assumes ascii (alphanumeric data). So if you have
only numeric data then you need to change to
@sorted = sort {$a <=> $b} @list;
which would sort numerically if needed otherwise will sort as you
want.
Wags ;)
-----Original Message-----
From: Quincy Ntuli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 05:16
To: [EMAIL PROTECTED]
Subject: sorting of arrays
I understand that perl desides how it stores data in an array.
does it make sense for me to ...
@sorted = sort @list;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]