Badger...axSize(3pm)

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

✨ NAME ✨

Badger::Data::Facet::List::MaxSize β€” it's a validation facet for the size of a list, bestie πŸ’…

(also, the header of this page is like Badger...axSize(3pm) and the manual name is 3pm β€” it's a Perl user-contributed doc, that's the whole vibe 🌸)


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, this module implements a validation facet that checks the size of a list, to assert that it's equal to or above a certain size in terms of the items it contains. Like, how many things are in there, that kind of size. πŸŽ€


πŸ‘‘ METHODS πŸ‘‘

This module implements the following method in addition to the ones it inherits from the base classes, which are:

  • Badger::Data::Facet::List
  • Badger::Data::Facet
  • Badger::Base

🌈 validate($list_ref, $type)

This method validates that the size of the list (i.e. the number of elements) passed by reference as the first argument is less than or equal to the pre-defined maximum limit. ✨

Fr fr, heads up: the DESCRIPTION up there says the list should be equal to or above a certain size, and this method says less than or equal to the pre-defined maximum. Both are exactly what the page says, so read it twice and vibe responsibly πŸ™ˆ

πŸ’– AUTHOR πŸ’–

Andy Wardley <http://wardley.org/> β€” icon, legend, the moment 🫢


Copyright (C) 2008-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. slay πŸ’œ


🌟 SEE ALSO 🌟

  • Badger::Base
  • Badger::Data::Facet
  • Badger::Data::Facet::List

okay that's the whole page bestie, go forth and validate those lists πŸ’…βœ¨

this was perl v5.36.0, dated 2023-08-28 β€” mwah, no cap πŸ“πŸ¦‹πŸ’–

πŸ“¦ where this page comes from