CPAN::Kwalify — Interface between CPAN.pm and Kwalify.pm
| Use Case | Command | Description |
|---|---|---|
| 🛠️ Validate distroprefs data | validate('distroprefs', $data, $file, $doc) | Validate data against the distroprefs schema |
| 📄 Retrieve schema YAML | yaml($schema_name) | Returns the YAML text of a supported schema |
use CPAN::Kwalify;
validate($schema_name, $data, $file, $doc);
_validate($schema_name, $data, $file, $doc)$schema_name — Name of a supported schema. Currently only distroprefs is supported.$data — Data to be validated.$file — Absolute path to the file the data are coming from.$doc — Index of the document within $doc that is to be validated. The last two arguments are only there for better error reporting.🔄 Relies on being called from within CPAN.pm.
💥 Dies if something fails. Does not return anything useful.
yaml($schema_name)📥 Returns the YAML text of that schema. 💥 Dies if something fails.
Andreas Koenig <andk AT cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-23 06:15 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)