Phoenix.pm: mod_perl internal redirect question

David A. Sinck phx-pm-list at grueslayer.com
Wed Jan 8 15:11:02 CST 2003


Does anyone have hints (preferably live code :-) about how to make
Term::ReadLine have a default value at the prompt so one can edit it?

Sadly, the best I've come up with is:


  my $term = new Term::ReadLine('a');
  $term->addhistory('lame default');
  my $input = $term->readline('ctrl-p for default> ');

and then pressing ctrl-p when I get hte prompt.

tfm isn't clear, the cookbook doesn't have useful examples, and I'm
hungry for a solution.

TIA,

David



More information about the Phoenix-pm mailing list