abdan has asked for the wisdom of the Perl Monks concerning the following question:

I'm noobie using perl -d -e "1;" I installed Term::readline and thought the same as using Bash on terminal the backspace is undo the last key input/pressed, but the perl debug behave undo entire current line i.e. delete the line How to have it the same as doing Bash on terminal, i.e. the backspace is undo the last character input ? Thanks much

Replies are listed 'Best First'.
Re: About perl -d -e "1;"
by LanX (Saint) on Oct 23, 2021 at 18:40 UTC
    Backspace doesn't undo, it deletes one char backwards.

    Your description is weird, you should check if some modifier keys like Shift or Alt are blocked.

    I don't think it's a Perl problem.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      was said, the perl debug behave undo entire current line i.e. delete the line. How to fix it
        as I already said

        > > I don't think it's a Perl problem.

        > How to fix it

        I don't know.

        update

        on a side note, typing perl -de0 or perl -de1 is faster :)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery