in reply to perl -d command editing

Do you have Term::ReadLine::Gnu or Term::ReadLine::Perl installed? I think they are used by the debugger, when present (via Term::ReadLine).