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

Re^6: Sorting challenge

by hdb (Parson)
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 } <>;


Comment on Re^6: Sorting challenge
Download Code
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: (6)
As of 2014-07-26 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (177 votes), past polls