{
    "mode": "info",
    "parameter": "CPAN::Meta::Validator",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/CPAN%3A%3AMeta%3A%3AValidator/json",
    "generated": "2026-07-05T13:47:43Z",
    "synopsis": "my $struct = decodejsonfile('META.json');\nmy $cmv = CPAN::Meta::Validator->new( $struct );\nunless ( $cmv->isvalid ) {\nmy $msg = \"Invalid META structure.  Errors found:\\n\";\n$msg .= join( \"\\n\", $cmv->errors );\ndie $msg;\n}",
    "sections": {
        "NAME": {
            "content": "CPAN::Meta::Validator - validate CPAN distribution metadata structures\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.150010\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $struct = decodejsonfile('META.json');\n\nmy $cmv = CPAN::Meta::Validator->new( $struct );\n\nunless ( $cmv->isvalid ) {\nmy $msg = \"Invalid META structure.  Errors found:\\n\";\n$msg .= join( \"\\n\", $cmv->errors );\ndie $msg;\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module validates a CPAN Meta structure against the version of the\nthe specification claimed in the \"meta-spec\" field of the structure.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\nmy $cmv = CPAN::Meta::Validator->new( $struct )\n\nThe constructor must be passed a metadata structure.\n\nisvalid\nif ( $cmv->isvalid ) {\n...\n}\n\nReturns a boolean value indicating whether the metadata provided is\nvalid.\n\nerrors\nwarn( join \"\\n\", $cmv->errors );\n\nReturns a list of errors seen during validation.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report any bugs or feature using the CPAN Request Tracker.  Bugs\ncan be submitted through the web interface at\n<http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>\n\nWhen submitting a bug or request, please include a test-file or a patch\nto an existing test-file that illustrates the bug or desired feature.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "o   David Golden <dagolden@cpan.org>\n\no   Ricardo Signes <rjbs@cpan.org>\n\no   Adam Kennedy <adamk@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2010 by David Golden, Ricardo Signes,\nAdam Kennedy and Contributors.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\nperl v5.34.0                      2026-06-23      CPAN::Meta::Validator(3perl)",
            "subsections": []
        }
    },
    "summary": "CPAN::Meta::Validator - validate CPAN distribution metadata structures",
    "flags": [],
    "examples": [],
    "see_also": []
}