Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Changing Perl's sort Default

by Ovid (Cardinal)
on Oct 23, 2002 at 03:32 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-12-10 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?