in reply to CPANPLUS with versioned Modules

You need to quote the module or distribution names. Also, you seem to be missing a -w switch :)
ysth@raven:~$ perl -wle'sub i { print "installing: $_[0]" } i(Compress +::Zlib)' installing: Compress::Zlib ysth@raven:~$ perl -wle'sub i { print "installing: $_[0]" } i(Compress +-Zlib-1.42)' Argument "Zlib" isn't numeric in subtraction (-) at -e line 1. Argument "Compress" isn't numeric in subtraction (-) at -e line 1. installing: -1.42 ysth@raven:~$ perl -wle'sub i { print "installing: $_[0]" } i(Compress +-Zlib)' Argument "Zlib" isn't numeric in subtraction (-) at -e line 1. Argument "Compress" isn't numeric in subtraction (-) at -e line 1. installing: 0

Replies are listed 'Best First'.
Re^2: CPANPLUS with versioned Modules
by mishikal (Novice) on Jun 20, 2007 at 17:18 UTC
    Quoting the module doesn't fix my underlying issue, which is being able to specify a version. It does fix the problem with -1.42 being called a module.
    perl -MCPANPLUS -e 'install("/P/PM/PMQS/Compress-Zlib-1.42")' [ERROR] No such module '/P/PM/PMQS/Compress-Zlib-1.42'
    perl -MCPANPLUS -e 'install("Compress-Zlib-1.42")' [ERROR] No such module 'Compress-Zlib-1.42'
    Help still desired. :)
      Going by the documentation, it looks like you need to add the extension:
      perl -MCPANPLUS -we 'install("/P/PM/PMQS/Compress-Zlib-1.42.tar.gz")'
      but I just looked at the code, and there doesn't actually seem to be support for this at all. I suggest you file a bug.