Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Sorting challenge

by BillKSmith (Curate)
on Jul 23, 2013 at 04:02 UTC ( #1045765=note: print w/ replies, xml ) Need Help??

in reply to Sorting challenge

Always prompt for input. Tell the user what you expect him to do. (e.g. Enter 6 numbers seperated by "Enter Key". Or Enter a list of numbers seperated by "Enter Key". Terminate with eof (ctrl-z)). This prevents most of the problems caused by the user not knowing that the program is waiting for him.

Even better, use a prompt module. In this case, it may be overkill, but it is worth learning how to use one.


Comment on Re: Sorting challenge

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2015-11-25 09:55 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (672 votes), past polls