Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
Case Insensitive Sort
Previous Thread
Next Thread
Print Thread
View Threaded
Sep 14, 2000, 12:24 AM
clearfox
Novice
(36 posts)
Sep 14, 2000, 12:24 AM
Post #1 of 3
Views: 2622
Shortcut
Case Insensitive Sort
I'm using the sort function on an array and it sorts the upper case words b4 the lower case words.
What will sort just alphebeticaly.
Thanks,
perlkid
Sep 14, 2000, 1:35 AM
Mark Badolato
Veteran
(1509 posts)
Sep 14, 2000, 1:35 AM
Post #2 of 3
Views: 2489
Shortcut
Re: Case Insensitive Sort
In reply to
@array = sort {lc $a cmp lc $b} @array;
--mark
Installation support is provided via ICQ at UIN# 53788453. I will only respond on that number.
Sep 14, 2000, 1:21 PM
clearfox
Novice
(36 posts)
Sep 14, 2000, 1:21 PM
Post #3 of 3
Views: 2464
Shortcut
Re: Case Insensitive Sort
In reply to
Thanks Mark,
That worked great.
perlkid
Previous Thread
Next Thread
Print Thread
View Threaded