What's wrong with $Config{installsitelib}? ExtUtils::MakeMaker takes that as the default value of INSTALLSITELIB and installs most added modules there. It's already in @INC, so no use lib '/some/path'; is needed. Perl and CPAN.pm can keep track of what version of your module is installed on each machine, and update when needed.
| [reply] |
Depending on your application, you may want to look into PAR. It would allow you to bundle your modules into your program and just migrate the PAR package across multiple machines of the same architecture.
Here's an article about Perl on use.perl.org, I think it's something that everyone should play with at least once. :D | [reply] |
I can't think of anything friendlier than perl -MCPAN -e"install Module::Name", except perhaps to use your linux distro's packaging scheme. Do you really
need to fight against using perl's regular locations for site modules?
Note that my previous stock answer would have been to specify a prefix; but with more and more modules switching from MakeMaker to Module::Build (prematurely, IMO) I don't know how to guarantee that that would work. | [reply] [d/l] |
my problem with the excellent CPAN.pm is that it needs an internet-connection, which isn't always an option for those machines of mine.
what do you mean by "prefix"?
| [reply] |