Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sort behavior explanation required

by AnomalousMonk (Archbishop)
on Apr 20, 2014 at 16:03 UTC ( [id://1082949]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my @arr = ('jack', 80, 'martin', 3, 'allan', 'george');
    ...
    Argument "allan" isn't numeric in sort at -e line 1.
    Argument "george" isn't numeric in sort at -e line 1.
    jack martin allan george 3 80
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my @ra = qw(foo 2bar 123baz quux999 x999x);
    ...
    '123baz' == 123
    'quux999' == 0
    'x999x' == 0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found