Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 } <>;
Comment on Re^6: Sorting challenge
Download Code
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-05-27 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?