in reply to Auto Fill

If I understood your question correctly,
you are looking for Pre-populating <STDIN> with a default value.

Also - in your code, you may want to change "elsif" to plain "else".

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

Replies are listed 'Best First'.
Re^2: Auto Fill
by PilotinControl (Pilgrim) on May 15, 2015 at 21:03 UTC

    Pre-populate based on input: if input is the word NONE then the prepopulated output for the next screen would be E and if any other input the prepopulated output would be L

      Did you notice that my previous post had a Link to information on how to implement this "pre-population", along with a discussion on why it was not a good idea ?

              "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

        Actually this is a different form of pre-population..if NONE is entered it should just skip that screen and move on...and if SCRAP is entered it should skip that screen also...since all input is being sent to a data file anyways. So in actuality there's no need to even show a Loaded or Empty screen. It does help to talk things out in order to solve a problem.