Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: Sorting challenge

by hdb (Prior)
on Jul 23, 2013 at 15:07 UTC ( #1045891=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Sorting challenge
in thread Sorting challenge

Why not just

<>; print sort { $a <=> $b } <>;

Replies are listed 'Best First'.
Re^7: Sorting challenge
by davido (Archbishop) on Jul 23, 2013 at 15:37 UTC

    Because he is supposed to limit input to a user-specified number. By ignoring that specific number, the test harness could throw in extra inputs to verify he's actually checking.


    Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045891]
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: (5)
As of 2016-06-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.