On Thu, Apr 3, 2008 at 7:35 AM, LesleyB <[EMAIL PROTECTED]> wrote: snip > Which method is considered better - using cpan as a command at the > command line or using 'perl -MCPAN -e ..'' ? snip
The cpan script was added in Perl 5.8.1. It is a command line interface to the CPAN module, so it is not significantly different from perl -MCPAN -e ''. snip > Does using CPAN by either method above ensure the latest version of > any given module or does it give the latest module for the particular > version of Perl?. snip Modules are not stored by Perl version, they are stored by their own versions, so you get the latest version if you do not specify a specific version by using the relative path to the tar ball on the CPAN mirror. This installs Version 0.02: perl -MCPAN -e 'install Acme::Lisp' This installs Version 0.01: perl -MCPAN -e 'install AMBS/Acme/Acme-Lisp-0.01' snip > I'm running 5.8 and am aware 5.10 is out there - I would hope modules > would fall gracefully back to 5.8.8 but am aware this might not happen > for some modules. snip Very few (if any) modules use the new features of Perl 5.10. In fact, many modules are designed to work with versions of Perl all the way back to version 5.005 (aka 5.5) which was last released back in 1999. If you are worried about whether a given module is well supported with your version of Perl on your Platform, you can always go to the module's CPAN page and click on "Perl/Platform Version Matrix". -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/