Check out the docs, sort() takes an optional code block.

@ODB2 = sort {lc($a) cmp lc($b)} @ODB;

Rob


-----Original Message-----
From: Zol Bes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 2:05 AM
To: [EMAIL PROTECTED]
Subject: sorting


Hi Lists,

I'd like to sort the text  in an array file.

@ODB2 = sort @ODB;

would be good, but it takes difference between lowercase and uppercase
letters.

thanks :
Zol



_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to