Object...lidate(3pm)
π Object::Lazy::Validate β bestie edition π
okay so this is Object::Lazy::Validate, and yeah the header on the original page is kinda squished (Object...lidate(3pm) β the terminal truncates it, not us π
), but the full name is Object::Lazy::Validate and it lives in the User Contributed Perl Documentation section, i.e. section 3pm. Perl module vibes. Let's GO π¦
β¨ NAME β¨
Object::Lazy::Validate β a validator and initializer for Object::Lazy. it's giving "make sure your constructor params aren't a whole mess before anything explodes" π
πΈ VERSION πΈ
0.12 β that's the version, bestie. write it down. π
β SYNOPSIS β
here's the whole flex, like literally the entire usage of this module:
use Object::Lazy::Validate;
my ($class, $params) = Object::Lazy::Validate::validate_new(@_);
$params = Object::Lazy::Validate::init($params);
that's it. that's the whole thing. short and iconic, i fear π
π DESCRIPTION π
so Object::Lazy::Validate is a validator and initializer for Object::Lazy. it shows up, it checks your stuff, it sets your stuff up. main character energy fr fr β¨
π«Ά SUBROUTINES/METHODS π«Ά
π sub validate_new
this one is the validator for the constructor of the package Object::Lazy. it's the bouncer at the club door of your constructor. everyone gets checked. no cap. πͺβ¨
π§ sub init
this one is the initializer for the constructor of the package ObjectLazy. yes, we said ObjectLazy right there in the original β no underscore β and we are not fixing it, we are just reporting it exactly as it is, because facts are facts ππ
π DIAGNOSTICS π
both the validator and the initializer can confess at false parameters. like, they will straight up confess β that's the Perl thing where it tells you where it died β if your parameters are false. so if you pass garbage, expect drama. it's giving snitching, lowkey but for your own good π
π CONFIGURATION AND ENVIRONMENT π
nothing
like. nothing. no env vars, no config files, no secret switches. pristine. clean girl aesthetic β¨
π DEPENDENCIES π
Params::Validate
that's the one. that's the whole list. it needs Params::Validate to do its lil parameter-checking thing π«Ά
πΈ INCOMPATIBILITIES πΈ
not known
like, none that we know of?? if you find one, that's a you problem and also please tell someone π
π BUGS AND LIMITATIONS π
not known
again β none known. it's just out here living its best life with no known bugs πβ¨ i know. i know. suspiciously smooth. but that's what the page says, so that's what we report π₯
π AUTHOR π
Steffen Winkler β the icon who wrote this, periodt. π
β LICENSE AND COPYRIGHT β
Copyright (c) 2007 - 2012, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
so yeah β free software, same terms as Perl itself, all rights reserved. legal girlies stay winning π
okay that's the whole page bestie, you're officially educated π«Ά go validate something β¨
and a lil sign-off for the road: this page came from perl v5.36.0 and it's dated 2022-10-16. remember the date, remember the version, slay πππ¦
π¦ where this page comes from
- ubuntu noble: libobject-lazy-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libobject-lazy-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libobject-lazy-perl 0.16-2 Β· Artistic-1.0-Perl OR 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