Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950863]
[LanX]: the new BS Galactica series is my all time SoapFiction favourite ...
[Your Mother]: I even liked "The Arrival" and I generally hate time travel (oriented) stuff.
[Your Mother]: Gotta go. Stay out of trouble.
[LanX]: no worries ... mainland Europe is safe ;-P
[LanX]: ??? (probably my English is to limited)
[LanX]: too

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2018-03-19 15:12 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.