No line editing within perl -d on RedHat

Discussion in 'Perl Misc' started by Theo van den Heuvel, May 16, 2005.

  1. Hi,

    Line editing doesn't work when debugging on my
    RedHat Linux machine.
    For example, I cannot edit/repeat previous commands.
    According to the Camel Book, I need to have
    Term::ReadKey and Term::ReadLine installed.
    I tested both, and they seem to work allright.

    Does anybody have an idea what I am missing?

    Thanks,

    Theo van den Heuvel
    Theo van den Heuvel, May 16, 2005
    #1
    1. Advertising

  2. Theo  van den Heuvel

    Joe Smith Guest

    Theo van den Heuvel wrote:

    > Line editing doesn't work when debugging on my RedHat Linux machine.
    > For example, I cannot edit/repeat previous commands.


    It works for me.

    linux% cat /etc/redhat-release
    Red Hat Linux release 9 (Shrike)
    linux% perl -d -e 1

    Loading DB routines from perl5db.pl version 1.23
    Editor support available.
    Enter h or `h h' for help, or `man perldebug' for more help.

    "Editor support" = Control-P and up-arrow are functional.

    > Term::ReadKey and Term::ReadLine installed.
    > I tested both, and they seem to work allright.


    Make sure all the parts are there.

    /usr/lib/perl5/5.8.3/perl5db.pl
    /usr/lib/perl5/5.8.3/i586-linux/IO/Handle.pm
    /usr/lib/perl5/5.8.3/strict.pm
    /usr/lib/perl5/5.8.3/Carp.pm
    /usr/lib/perl5/5.8.3/Exporter.pm
    /usr/lib/perl5/5.8.3/Symbol.pm
    /usr/lib/perl5/5.8.3/SelectSaver.pm
    /usr/lib/perl5/5.8.3/i586-linux/IO.pm
    /usr/lib/perl5/5.8.3/i586-linux/XSLoader.pm
    /usr/lib/perl5/5.8.3/warnings.pm
    /usr/lib/perl5/5.8.3/i586-linux/auto/IO/IO.so
    /usr/lib/perl5/5.8.3/Term/ReadLine.pm
    /usr/lib/perl5/5.8.3/Carp/Heavy.pm
    /usr/lib/perl5/site_perl/5.8.3/Term/ReadLine/Perl.pm
    /usr/lib/perl5/site_perl/5.8.3/Term/ReadLine/readline.pm
    /usr/lib/perl5/5.8.3/SelfLoader.pm
    /usr/lib/perl5/site_perl/5.8.3/i586-linux/Term/ReadKey.pm
    /usr/lib/perl5/5.8.3/AutoLoader.pm
    /usr/lib/perl5/5.8.3/i586-linux/DynaLoader.pm
    /usr/lib/perl5/5.8.3/vars.pm
    /usr/lib/perl5/5.8.3/warnings/register.pm
    /usr/lib/perl5/5.8.3/i586-linux/Config.pm
    /usr/lib/perl5/site_perl/5.8.3/i586-linux/auto/Term/ReadKey/ReadKey.so
    /usr/lib/perl5/5.8.3/Term/Cap.pm
    /etc/termcap

    -Joe
    Joe Smith, May 17, 2005
    #2
    1. Advertising

  3. "Joe Smith" <> schreef in bericht
    news:...
    > Theo van den Heuvel wrote:
    >
    >> Line editing doesn't work when debugging on my RedHat Linux machine.
    >> For example, I cannot edit/repeat previous commands.

    >
    > It works for me.
    >

    [...]

    >
    > Make sure all the parts are there.
    >

    [clipped listing of relevant modules]

    >
    > -Joe


    Thanks Joe,

    I noticed some differences (apart from version stuff)
    that lead me to reinstall Readline and Term-ReadLine-Perl.
    That took care of it. It works.

    Thanks,

    Theo van den Heuvel
    Theo van den Heuvel, May 17, 2005
    #3
  4. "Joe Smith" <> schreef in bericht
    news:...
    > Theo van den Heuvel wrote:
    >
    >> Line editing doesn't work when debugging on my RedHat Linux machine.
    >> For example, I cannot edit/repeat previous commands.

    >
    > It works for me.
    >

    [...]

    >
    > Make sure all the parts are there.
    >

    [clipped listing of relevant modules]

    >
    > -Joe


    Thanks Joe,

    I noticed some differences (apart from version stuff)
    that lead me to reinstall Readline and Term-ReadLine-Perl.
    That took care of it. It works.

    Thanks,

    Theo van den Heuvel
    Theo van den Heuvel, May 17, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Hembree
    Replies:
    0
    Views:
    1,183
    Daniel Hembree
    Jan 12, 2004
  2. U. George
    Replies:
    4
    Views:
    822
    U. George
    Aug 11, 2005
  3. Replies:
    0
    Views:
    572
  4. gordon

    perlio problem? redhat 9, perl 5.8.0

    gordon, Jun 24, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    123
    gordon
    Jun 27, 2003
  5. marmot101
    Replies:
    5
    Views:
    138
    Akop Pogosian
    Jul 29, 2003
Loading...

Share This Page