CPAN::Meta::Check - Verify requirements in a CPAN::Meta object
version 0.004
warn "$_\n" for verify_requirements($meta, [qw/runtime build test/], 'requires');
This module verifies if requirements described in a CPAN::Meta object are present.
This function checks if all dependencies in $reqs (a CPAN::Meta::Requirements object) are met, taking into account that 'conflicts' dependencies have to be checked in reverse. It returns a hash with the modules as values and any problems as keys, the value for a succesfully found module will be undef.
$reqs
Check all requirements in $meta for phases $phases and types $types. Modules are searched for in @$incdirs, defaulting to @INC.
$meta
$phases
$types
@$incdirs
@INC
This function returns a unified CPAN::Meta::Requirements object for all $type requirements for $phases. $phases may be either one (scalar) value or an arrayref of valid values as defined by the CPAN::Meta spec. $type must be a a relationship as defined by the same spec. Modules are searched for in @$incdirs, defaulting to @INC.
$type
Test::CheckDeps
CPAN::Meta
Leon Timmermans <leont@cpan.org>
This software is copyright (c) 2012 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPAN::Meta::Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Meta::Check
CPAN shell
perl -MCPAN -e shell install CPAN::Meta::Check
For more information on module installation, please visit the detailed CPAN module installation guide.