CPAN::Kwalify(3perl)

πŸ¦‹ NAME πŸ¦‹

CPAN::Kwalify β€” the literal interface between CPAN.pm and Kwalify.pm. bestie it's the go-between, the group chat admin keeping those two talking πŸ’–


✨ SYNOPSIS ✨

use CPAN::Kwalify;
validate($schema_name, $data, $file, $doc);

that's it. that's the whole vibe check 🫢


πŸ’… DESCRIPTION πŸ’…

okay so there's basically two things going on here, and I need you to lock in:

🌟 _validate($schema_name, $data, $file, $doc)

bestie this is the main character function. here's the tea on every argument:

  • $schema_name β€” the name of a supported schema. and when I say "supported", I mean currently only "distroprefs" is supported. that's the whole list. one (1) schema. iconic of it honestly πŸ‘‘
  • $data β€” the actual data that needs validating. this is what we're putting under the microscope πŸ”
  • $file β€” the absolute path to the file that the data is coming from. absolute. don't come at me with relative paths πŸ™ˆ
  • $doc β€” the index of the document within $doc that is to be validated.

and lowkey? the last two arguments β€” $file and $doc β€” are only there so the error messages can be better. they're not doing the validating, they're doing the narrating πŸ’…

⚠️ ngl this one relies on being called from within CPAN.pm. don't just call it from wherever, it's not built for that.
πŸ’€ and fr fr: it dies if something fails. like, no graceful little return code, no sad empty string, it just collapses. and even when it doesn't die β€” it does not return anything useful. not a vibe, just facts ✨

πŸŽ€ yaml($schema_name)

returns the YAML text of that schema. that's it, that's the whole job πŸ’–

and yeah β€” it dies if something fails too. dramatic? yes. but fair. 😭


🌈 AUTHOR 🌈

Andreas Koenig <andk@cpan.org> β€” the mastermind, the blueprint, the origin story 🫢


πŸ’œ LICENSE πŸ’œ

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>


and that's the whole page, bestie πŸŽ€ we out here on perl v5.44.0, dated 2026-10-17, and it's giving CPAN::Kwalify(3perl) the whole way through. slay πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms