in reply to Pre-populating <STDIN> with a default value
Use Term::ReadLine or perhaps IO::Prompt.
The cake is a lie. The cake is a lie. The cake is a lie.