in reply to Simple Q: Make it prompt for a variable

Look at Term::Readline. Automatically adds history, editing, etc. Makes programs that present a shell much nicer to deal with, IMHO. Also almost trivial to add support for.
  • Comment on Re: Simple Q: Make it prompt for a variable