in reply to Re: Can't use up/down arrow for history in cpan shell
in thread Can't use up/down arrow for history in cpan shell

The OPs problem is that the up and down arrow history doesn't work with the default Term::ReadLine::Perl, which is why one needs to install Term::ReadLine::Gnu for cpan (and the debugger) to get up-arrow history access.

I'm not currently in a position to test this, but I will.

Replies are listed 'Best First'.
Re^3: Can't use up/down arrow for history in cpan shell
by Myrddin Wyllt (Hermit) on May 21, 2016 at 13:27 UTC

    The OP doesn't actually mention Term::ReadLine::Perl, which isn't in the core so isn't really a 'default' (I know some chap on StackOverflow said it was, but corelist disagrees). I was just saying that T::R::P, together with Term::ReadKey works fine (at least on Linux, I haven't tested on any other OS).

    T::R::Gnu may well be a better solution - I was just giving another view from my personal experience of what I did to get this working. I know this works on Slackware, Debian and CentOS, and has done for many years, but I will definitely try Term::ReadLine::Gnu next time, and have already updated my scribblings to that effect.