Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Alphnumeric Matching

by JavaFan (Canon)
on Jan 31, 2012 at 02:56 UTC ( #950863=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Alphnumeric Matching
in thread Alphnumeric Matching

#my @tapes_to_eject=sort { substr($a, 1) <=> substr($b, 1)} @_;
Well, if you outcomment the sort there's little chance it will sort. And you may want to do a string compare instead of a numeric compare.


Comment on Re^3: Alphnumeric Matching
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2015-07-02 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls