Typically a program has to provide any fancy editing features. As the ever-popular Anonymous Monk mentions, the package Term::Readline package can give you access to one of the line input libraries. If you get it set up with the Gnu libreadline library, you can get history and quite a bit of editing functionality.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|