in reply to adding default text to STDIN
Look at something like Term::ReadLine. Or just print the current value in the prompt (print "$property [$record->{$property}]: ") and if $response eq '' ignore it (of course this prevents the user from actually providing a value of "nothing", but for most applications it's probably fine).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding default text to STDIN
by bangers (Pilgrim) on Nov 09, 2005 at 18:05 UTC |