![]() |
|
P is for Practical | |
PerlMonks |
Re: Pre-populating <STDIN> with a default valueby belg4mit (Prior) |
on Dec 24, 2008 at 01:58 UTC ( #732400=note: print w/replies, xml ) | Need Help?? |
The conventional method is to simply show the default in brackets and use that if the response is empty. You could also probably work something bass-ackwards out with
FileHandle::Unget
--
In Section
Seekers of Perl Wisdom
|
|