in reply to Re: install multiple modules at once using CPAN
in thread install multiple modules at once using CPAN

The problem happens when I try to install both modules in the same command, it works ok if I install them separately using two commands.

I want to know if there's something wrong with the syntax I've used (see my first post), or the problem is that CPAN can't handle multiple installations at once.

  • Comment on Re^2: install multiple modules at once using CPAN

Replies are listed 'Best First'.
Re^3: install multiple modules at once using CPAN
by Anonymous Monk on Aug 25, 2014 at 20:02 UTC
    The problem is the syntax (see perlintro). Its like writing
    $ perl -le " print foo bar " Can't locate object method "foo" via package "bar" (perhaps you forgot + to load "bar"?) at -e line 1. $ perl -e "warn foo bar " Can't locate object method "foo" via package "bar" (perhaps you forgot + to load "bar"?) at -e line 1. $ perl -e "warn bar->foo " Can't locate object method "foo" via package "bar" (perhaps you forgot + to load "bar"?) at -e line 1.

    arguments to functions need to be seperated by commas, and strings should generally be quoted

    If you had quoted them

    And it says A comma is missing.