Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Five digit number display separately

by BillKSmith (Deacon)
on Sep 04, 2013 at 14:17 UTC ( #1052348=note: print w/ replies, xml ) Need Help??


in reply to Five digit number display separately

You have already recieved several good solutions to the printing part of your problem. There are a few things to consider about the input. You should always prompt the user when you expect him to do something like type a number. Remove the newline from the response, and make sure that the input is valid. If not, inform the user and give him another chance. Consider using a module such as IO::Prompt::Hooked.

Bill


Comment on Re: Five digit number display separately

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2015-07-06 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls