in reply to Using CPAN

Try:

perl -MCPAN -e'install Imager'

The -e flag tells perl that the string 'install Imager' should be executed as Perl code. Without it, perl assumes that there is a file called 'install Imager' and tries to open that file and execute any Perl it finds within it.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^2: Using CPAN
by Anonymous Monk on Dec 01, 2013 at 13:30 UTC
    :D
    $ perl -MCPAN -e 'install Imager' Can't find string terminator "'" anywhere before EOF at -e line 1.

    win32 cmd.exe likes the double quotes

    OTOH cpan Imager ought to work even on activeperl