Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Changing Perl's sort Default

by Ovid (Cardinal)
on Oct 23, 2002 at 03:32 UTC ( [id://207282]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @new = sort { lc $a cmp lc $b } @old;
    
  2. or download this
    # incidentally, why doesn't this trigger a bareword
    # warning under strict?
    @new = sort alphanumeric @old;
    
    sub alphanumeric { lc $a cmp lc $b }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found