http://www.perlmonks.org?node_id=11108394


in reply to SOLVED: How to install Term::ReadLine::Gnu in perlbrew ... only once?

I used to work with several pure-Perl backend alternatives which worked really well.

But I don't remember anymore which one was the best... (Update: probably Term::ReadLine::Zoid)

Can I extend your question?

What's the best module on Windows?

I also enjoy having a cmd-history between sessions ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re: How to install Term::ReadLine::Gnu in perlbrew ... only once?

Replies are listed 'Best First'.
Re^2: How to install Term::ReadLine::Gnu in perlbrew ... only once?
by haj (Chaplain) on Nov 06, 2019 at 19:52 UTC

    I've tried Term::ReadLine::Zoid and also Term::ReadLine::Perl. The Zoid variant installs without a hitch but isn't picked up by the Perl debugger (though perldoc perldebug suggests otherwise). Arrows are just escape sequences. The Perl variant fails to install with ReadKey.c: loadable library and perl binaries are mismatched (got handshake key 0xc180000, needed 0xd700000). Oops?

    But then: I was pretty sure that I didn't have that problem under Debian Jessie, for none of the gazillions of XS modules I tend to collect over time. And indeed: I could fire up an old image of mine, and all is fine from Perl 5.10.1 to Perl 5.30.0.

    However, my usual suspect right now isn't the Debian version, but rather some perlbrew, or maybe perlbrew plus cpanm issue on my current system. These are the symptoms as given by the debugger on p \%INC:

    On the old desktop, for Perl 5.10:

    'Term/ReadLine.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.10.1/lib +/5.10.1/Term/ReadLine.pm' 'Term/ReadLine/Gnu.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.10.1 +/lib/site_perl/5.10.1/x86_64-linux/Term/ReadLine/Gnu.pm' 'Term/ReadLine/Gnu/XS.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.1 +0.1/lib/site_perl/5.10.1/x86_64-linux/Term/ReadLine/Gnu/XS.pm

    On the new desktop:

    'Term/ReadLine.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.30.0/lib +/5.30.0/Term/ReadLine.pm' 'Term/ReadLine/Gnu.pm' => '/home/haj/perl5/lib/perl5/x86_64-linux/Ter +m/ReadLine/Gnu.pm' 'Term/ReadLine/Gnu/XS.pm' => '/home/haj/perl5/lib/perl5/x86_64-linux/ +Term/ReadLine/Gnu/XS.pm'

    So, while the old desktop kept the Perl version in the path and therefore each of the Gnu libraries separate, the new desktop doesn't - and therefore the installation processes clobber each other's files. Maybe I goofed up when installing perlbrew and should start over again...

    I've no concrete info about your extended question but only vague memories that the command history in the debugger just worked... after setting TERM=dumb, most probably with Term::ReadLine::Gnu because I think that my habit to install that module dates back to my Windows times.

      Thanks I'll look into it and give feedback till weekend.

      Zoid needs (environment) variables to be set to get plugged in by the debugger. I suppose you're aware.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        Zoid needs (environment) variables to be set to get plugged in by the debugger. I suppose you're aware.
        I wasn't aware, so scratch my remark about it not being picked up by the debugger.