Works for me. I.e., type "foo" at the prompt, followed by <Enter>. New empty prompt appears. Hit cursor up, and "foo" is back for you to edit. This is what I understood the OP wanted...
If that doesn't work, you're likely either on Windows, or don't have Term::ReadLine::Gnu installed.
In reply to Re^3: Simulating Command Line History in Perl
by almut
in thread Simulating Command Line History in Perl
by Only1KW
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |