Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Spanish locale and name sorting

by Jorge_de_Burgos (Beadle)
on May 01, 2009 at 15:03 UTC ( #761305=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    my @list = ('maceira', 'mac alister', 'mac loughlin', 'san esteban', '
    +sangregorio', 'san zoilo');
    
    print "$_\n" for sort @list;
    
  2. or download this
    mac alister
    mac loughlin
    ...
    san esteban
    san zoilo
    sangregorio
    
  3. or download this
    #!/usr/bin/perl
    use locale;
    ...
    my @list = ('maceira', 'mac alister', 'mac loughlin', 'san esteban', '
    +sangregorio', 'san zoilo');
    
    print "$_\n" for sort @list;
    
  4. or download this
    mac alister
    maceira
    ...
    san esteban
    sangregorio
    san zoilo
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-03-29 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (70 votes). Check out past polls.

    Notices?