Badger...Length(3pm)
π Badger::Data::Facet::Text::MinLength β bestie edition π
okay so this is a page from the User Contributed Perl Documentation, manual section 3pm, and it's about Badger::Data::Facet::Text::MinLength. yes the header got squished into Badger...Length(3pm) but we know what it really is. let's go π¦
β¨ NAME β¨
Badger::Data::Facet::Text::MinLength β a validation facet for text length. that's the whole vibe. it checks your text and goes "hmm bestie, is this long enough?" π
πΈ DESCRIPTION πΈ
so like, this module implements a validation facet that checks the length of a text value, and it asserts that it's equal to or above a pre-defined length. that's it. that's the job. short text? rejected. no cap. π€
π METHODS π
this module implements the following method in addition to the ones it inherits from the Badger::Data::Facet::Text, Badger::Data::Facet and Badger::Base base classes. so you get all of those too, it's giving inheritance, it's giving family reunion π«Ά
β validate($text_ref, $type) β
this method validates that the length (aka the number of characters) of the text passed by reference as the first argument is greater than or equal to the pre-defined minimum limit.
so you hand it a reference to your text, and it does the vibe check: long enough? slay. too short? not slay. π
π AUTHOR π
Andy Wardley <http://wardley.org/>
π COPYRIGHT π
Copyright (C) 2001-2012 Andy Wardley. All Rights Reserved.
this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. iconic behaviour fr fr β¨
π SEE ALSO π
Badger::BaseBadger::Data::FacetBadger::Data::Facet::Text
aww and that's the whole page bestie, we ate and left no crumbs π
perl v5.36.0 π¦ dated 2023-08-28 π mwah, bye bestie π π
π¦ where this page comes from
- debian trixie: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbadger-perl 0.16-3 Β· 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