On Dec 25, 2005, at 9:39 AM, Tristan Mendoza wrote:

This is sortof a whim question,

In gentoo and apt commands under debian you can just update your portage etc to get the latest versions. the perl libs, is there a best method of getting those to auto update with cpan or something? I suppose it might be somesort of cronjob or something.

So far, Apple hasn't updated Perl with minor point releases of the OS, only with major releases.

If you need a script to scan CPAN for updated versions of modules you have installed, there are some examples of that in the "Programming Examples" section of "perldoc CPAN.pm". The .pm is not a typo - "perldoc CPAN" will show the docs for the "cpan" command-line tool, not for the CPAN.pm module.

Honestly though, such an auto-update script is more useful in theory than in practice. All it will do is run the standard "perl Makefile.PL; make; make test; make install" sequence for each module. Quite a few modules need extra parameters passed to Makefile.PL, environment variables, make file changes, etc. and won't work with the standard sequence of commands.

What most folks (myself included) do is basically just follow the "if it ain't broke, don't fix it" philosophy. If I find a bug in a module, or need a function that isn't present in the version I have, I'll check the online docs for that module at <http:// search.cpan.org>. Then, if a newer version fixes the bug and/or adds the function I need, then I'll update the module.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to