in reply to Broken cpan shell

G'day stangoesagain,

Your problem is just a typo (missing a 'P'):

s/-MCAN/-MCPAN/

If that's not clear, see perlrun which explains the command switches (including '-M').

— Ken

Replies are listed 'Best First'.
Re^2: Broken cpan shell
by stangoesagain (Acolyte) on Jan 14, 2019 at 14:13 UTC
    Oh, sorry, I must have copied from the wrong shell command in bash history. Anyway, this should be correct:
    stan@linux-pwfe:~> sudo perl -d -MCPAN -e shell [sudo] password for root: Loading DB routines from perl5db.pl version 1.53 Editor support available. Enter h or 'h h' for help, or 'man perldebug' for more help. main::(-e:1): shell *** buffer overflow detected ***: perl terminated Aborted stan@linux-pwfe:~>

      You have completely changed your original post. My response to what you originally wrote now makes absolutely no sense.

      Please read "How do I change/delete my post?". In particular, the section entitled "It is uncool to update a node in a way that renders replies confusing or meaningless".

      — Ken

        I thought about it, but it's not just a matter of one small strike-through over misspelling.

        Your reply begins with a clear reference to a typo and the edited version of the OP now clearly states that a typo has been corrected. I didn't think anyone would be confused by your suggested correction, by what it refers to, by how it makes sense, or think any less of your advice. It is followed by me posting outcome of a correct command and then another person's suggestion to edit the OP, which I did. Sorry if I slighted you in the process.

      Looks unpleasant :(

      I can't help with this one, but I suggest you edit the original post to indicate the actual issue - folks might miss the problem if it's buried in an Re^2.


      Mike
        Yeah, I've edited the OP. Thank you.