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

Hi, I upgraded CPAN and then quit shell. When I loaded the CPAN shell again, I got these warnings. Are there problems regarding these warnings? And how would I "fix" them? Thanx...

Warning /etc/inputrc line 1:
Invalid value `on' for variable `meta-flag'.
Choose from Off On.
Warning /etc/inputrc line 2:
Invalid value `on' for variable `input-meta'.
Choose from Off On.
Warning /etc/inputrc line 3:
Invalid value `off' for variable `convert-meta'.
Choose from Off On.
Warning /etc/inputrc line 4:
Invalid value `on' for variable `output-meta'.
Choose from Off On.

Replies are listed 'Best First'.
Re: cpan warnings
by andreychek (Parson) on Jul 06, 2001 at 20:08 UTC
    I noticed this too. The fix is simple enough though. Just edit /etc/inputrc -- the first few lines currently look like this:
    set meta-flag on set input-meta on set convert-meta off set output-meta on
    All you have to do is change the first character of the words on/off to be uppercase like so:
    set meta-flag On set input-meta On set convert-meta Off set output-meta On
    Thats it!
    -Eric
Re: cpan warnings
by converter (Priest) on Jul 06, 2001 at 22:06 UTC

    I've put up with the same warnings for a while now on my Mandrake 7.1 box. After reading this post, I did a little poking around and it seems that Term::ReadLine::Perl::readline has a few problems parsing inputrc files. It does case-sensitive comparisons for the values 'On' and 'Off', and doesn't like trailing comments (this from looking at the code and experimenting with moving the trailing comments to separate lines).

    The easiest fix is to install Term::ReadLine::Gnu which parses Mandrake's /etc/inputrc without any problems. I haven't looked at the latest version of Term::ReadLine::Perl to see if these problems have been fixed or not. If I can find time, I may try to work up some modifications and submit them to the maintainer.

Re: cpan warnings
by rrwo (Friar) on Jul 06, 2001 at 23:50 UTC

    Did you 'reload cpan'?