Badger...Length(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu resolute

πŸ’– 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 (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::Base
  • Badger::Data::Facet
  • Badger::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