E.g. :
- Env
- File::Spec
- File::Basename
- Time::localtime
These are just some of the gems to a system administrator. So, how to find out what core modules are included with your perl installation?
Here's how :
- First, find out the local Perl installation version :
$ perl -v This is perl, v5.10.0 built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
- Then, check out list of Perl version available in corelist :
$ corelist -v Module::CoreList has info on the following perl versions: 5 5.000 5.001 5.002 5.00307 5.004 5.00405 5.005 5.00503 5.00504 v5.6.0 v5.6.1 v5.6.2 v5.7.3 v5.8.0 v5.8.1 v5.8.2 v5.8.3 v5.8.4 v5.8.5 v5.8.6 v5.8.7 v5.8.8 v5.8.9 v5.9.0 v5.9.1 v5.9.2 v5.9.3 v5.9.4 v5.9.5 v5.10.0 v5.10.0 v5.10.1 v5.11.0 v5.11.0 v5.11.1 v5.11.2 v5.11.3 v5.11.4 v5.11.5 v5.12.0 v5.12.0 v5.12.1 v5.12.2 v5.12.3 v5.13.0 v5.13.0 v5.13.1 v5.13.2 v5.13.3 v5.13.4 v5.13.5 v5.13.6 v5.13.7 v5.13.8 v5.13.9
- Here is how to list what core modules are installed :
corelist -v v5.10.0 | less
The command "corelist" is part of Perl's core module.
Namaste !!!
2 comments:
Great post,
By the way, Padre F2 help has a nice feature that I wrote a while back. It displays in the title bar for the currently shown module POD in which Perl version it was added as core.
Thanks,
Thanks. Boy do I feel stupid, I've been using my own wrapper script for Module::CoreList. Granted it's only 5-6 lines, but still...
Post a Comment