DhMakePerl::Utils(3pm) | User Contributed Perl Documentation | DhMakePerl::Utils(3pm) |
DhMakePerl::Utils - helper routines for dh-make-perl and alike
use DhMakePerl::Utils qw(is_core_module); my $v = is_core_module('Test::More', '1.002'); my $v = nice_perl_ver('5.010001');
None of he following functions is exported by default.
If the CPAN module needs to be configured in some way, that should be done before calling this function.
If the CPAN module needs to be configured in some way, that should be done before calling this function.
Having this in a central routine makes it easier to add/remove packages in the list.
Returns "undef" if module is not a core module (anymore) in the current "perl" release.
For example 5.010 (and 5.01) is converted to 5.10.
Returns a list of relation and version. The relation is suitable for using in Debian package dependency version requirements.
For example
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2021-02-26 | perl v5.32.1 |