Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

perl debugger command history

by barvin (Beadle)
on Nov 14, 2005 at 16:18 UTC ( #508340=perlquestion: print w/replies, xml ) Need Help??
barvin has asked for the wisdom of the Perl Monks concerning the following question:

Switched from Debian to RH, and now when using the perl debugger in a terminal window the arrow key give me control charachters (such as ^[[A for the up arrow) instead of scrolling my command history. Any suggestions?

Replies are listed 'Best First'.
Re: perl debugger command history
by rinceWind (Monsignor) on Nov 14, 2005 at 17:28 UTC

    You need to install Term::ReadLine::Perl and/or Term::ReadLine::Gnu. The Term::ReadLine that is in the core is only a stub, and doesn't give you command history.

    If you go into the CPAN shell and install Bundle::CPAN, this is included in the essential goodies.


    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      Worked for me. Thanks!
Re: perl debugger command history
by gri6507 (Deacon) on Nov 14, 2005 at 16:58 UTC
    what shell does RedHat default you to? What shell were you running with Debian? I suspect it has something to do with that.
      I am using the bash shell in both instances. The arrow keys work just fine from the shell command line (I get command history scrolling with up and down arrows), and within other programs like emacs. I just realized however that I get the same problem when I use perl -MCPAN -e shell. I installed Term::ReadKey, and Term::ReadLine was already up to date.
Re: perl debugger command history
by sgifford (Prior) on Nov 14, 2005 at 17:28 UTC
    Probably something is wrong with your Term::ReadKey or Term::ReadLine installations. When you installed them, did they pass all of the tests? Were they installed somewhere where Perl knows to look for them? What do you get if you type:
    perl -MTerm::ReadKey -le 'print $Term::ReadKey::VERSION' perl -MTerm::ReadLine -le 'print $Term::ReadLine::VERSION'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://508340]
Approved by Old_Gray_Bear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-05-20 14:37 GMT
Find Nodes?
    Voting Booth?