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.
Bill
|
---|
In Section
Seekers of Perl Wisdom