NAME
CPAN/Maker/Utils - utilities to support CPAN::Maker
SYNOPSIS
use CPAN::Maker::Utils qw(is_core);
DESCRIPTION
Set of utilities to support `make-cpan-dist` project.
METHODS AND SUBROUTINES
get_module_version
get_module_version(module, [include-paths])
If you pass a list of include paths, the function will look for the module in those paths. Returns a hash with information about the module.
- version
-
The module version. The version is found using
ExtUtils::MM::parse_version
(this may be an undocumented function not for public consumption). - module
-
The module name.
- path
-
The fully qualifed path where the module was found.
is_core
is_core(module, [perl-version])
Returns a boolean true value if the module is core. If perl-version
is provided it returns true if the module was included in that version of Perl.
A module is determined to be core using Module::CoreList
.
make_path_from_module
make_path_from_module(module)
Returns the pathname for module by replacing the double-colon with '/' and adding '.pm' to the end of the string.
trim
trim(str)
Strip leading whitespace from string.
SEE ALSO
AUTHOR
Rob Lauer - <rlauer6@comcast.net>