http://www.perlmonks.org?node_id=1052348


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