in reply to Re^4: Programmatically installing modules
in thread Programmatically installing modules

And how do you check if the already installed module has the correct version? :)

sudo cpan -D List::Util CPAN: Storable loaded ok (v2.21) Going to read '/home/lanx/.cpan/Metadata' Database was generated on Wed, 18 Dec 2013 18:41:02 GMT List::Util ---------------------------------------------------------------------- +--- List utilities (eg min, max, reduce) P/PE/PEVANS/Scalar-List-Utils-1.35.tar.gz /usr/local/lib/perl/5.10.0/List/Util.pm Installed: 1.22 CPAN: 1.35 Not up to date Graham Barr (GBARR) gbarr@pobox.com

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^6: Programmatically installing modules
by morgon (Priest) on Dec 23, 2013 at 11:14 UTC
    Well this is really just a hack and for the time being I don't care about version.

    Detecting that a module is installed is good enough.

    I grant you that it is not the cleanest, but my problem is that I want to automate the installation of some third-party software that does not explicitely lists dependencies on particular versions.

    I can't do any better at the moment.