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

When I use the perl debugger, the up/down/left/right keys don't work. I get characters like these '^[[A^[[A^[[D^[[C ' when I use those keys. After googling around, I found out I need both Term::ReadLine and Term::ReadKey and I know both are installed by doing
perl -MTerm::ReadLine -e 1 perl -MTerm::ReadKey -e 1
and no error is returned. I am using bash shell and centOS. What else am I missing? TIA

Replies are listed 'Best First'.
Re: Perl debugger up/down key
by quester (Vicar) on Feb 15, 2009 at 19:20 UTC
    Try installing Term::ReadLine::Perl. It worked for me.

      Or, better yet, Term::ReadLine::Gnu -- it should automatically pick up the same input settings as bash.

      The core point being that Term::ReadLine itself just provides an interface to the various real readline implementations, of which ::Perl and ::Gnu are probably the most popular.

Re: Perl debugger up/down key
by zentara (Cardinal) on Feb 15, 2009 at 22:26 UTC
      lol