Badger...inSize(3pm)
β¨ NAME β¨
Badger::Data::Facet::List::MinSize β a whole validation facet whose entire job is checking how big a list is π
(ngl bestie, the page header truncates it to Badger...inSize but that's just the pager being cute with the filename β the real name is the long one up there βοΈ)
π DESCRIPTION π
okay so listen. This module implements a validation facet β like, a little vibe-checker β that inspects the size of a list and asserts that it is equal to or above a certain size, measured in terms of the items it contains. So if your list is too smol, this facet is gonna have opinions. π«Ά
πΈ METHODS πΈ
This module implements the following method in addition to those it inherits from the Badger::Data::Facet::List, Badger::Data::Facet and Badger::Base base classes. It's giving family tree, it's giving inherited lore π
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.
not me noticing the DESCRIPTION said "equal to or above a certain size" and this method says "less than or equal to the pre-defined maximum limit" π both of those sentences are straight from the source, so I'm handing them to you exactly as written β copy the words, don't @ me π
π AUTHOR π
Andy Wardley <http://wardley.org/>
π COPYRIGHT π
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.
π SEE ALSO π
Badger::BaseBadger::Data::FacetBadger::Data::Facet::List
and that's the whole page, bestie β written by Andy Wardley, shipped as part of perl v5.36.0, dated 2023-08-28, under User Contributed Perl Documentation. slay, go validate some lists, periodt π¦β¨
π¦ 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