* <[EMAIL PROTECTED]> [2002-04-15 15:45 +0200]:
Sorry, cut&paste did it again. In my mail, please replace
> @sorted_alphabetically = sort {$a <=> $b} @mylist;
with
@sorted_alphabetically = sort {$a cmp $b} @mylist;
--
Johannes Franken
Professional unix/network development
mailto
* Mok T.Y.-r15382 <[EMAIL PROTECTED]> [2002-04-15 15:14 +0200]:
> I need some help in converting strings that contain numbers back into
> numeric form.
No need to convert: Perl doesn't differ between numbers and strings.
Yes, this is completely unlike C, and normally it works as expected.
Just i
> "Mok" == Mok T Y <[EMAIL PROTECTED]> writes:
Mok> Hi, I need some help in converting strings that contain numbers
Mok> back into numeric form. Apparently, when I sort string
Mok> formatted number, the arrangement was according to alphanumeric
Mok> order (eg. 1, 10,11,2,20,21
on Mon, 15 Apr 2002 13:14:40 GMT, Mok T.Y.-R15382 wrote:
> I need some help in converting strings that contain numbers back into
> numeric form. Apparently, when I sort string formatted number, the
> arrangement was according to alphanumeric order (eg. 1,
> 10,11,2,20,21,3,30... ).
Are you using