in reply to Re: adding default text to STDIN
in thread adding default text to STDIN
I know that looks - and is - simple but it took a while for me to find the right call. Thanks again for your helpuse Term::ReadLine; my $record = { name => ‘joe bloogs’, age => 34, hobby => ‘chess’, }; my $term-> new Term::ReadLine 'user input'; for my $property ( keys %$record ) { my $response = $term->readline($property,$record->{$property}); $record->{$property} = $response; }
|
|---|