Badger...r::Min(3pm)

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

πŸ’– Badger::Data::Facet::Number::Min(3pm) πŸ’–

okay so bestie, welcome to the Perl manpage corner of the internet ✨ this one's from the User Contributed Perl Documentation and it's genuinely so useful, no cap.


✨ NAME ✨

Badger::Data::Facet::Number::Min β€” it's a validation facet for a minimum numerical value πŸŽ€


🌸 DESCRIPTION 🌸

so like. this module implements a validation facet β€” yes, implements, it's doing the work πŸ’… β€” and what that facet does is assert that a numeric value is equal to or larger than a pre-defined value.

that's it. that's the whole vibe. it's the bouncer at the club door going "you gotta be at least this tall to get in" 🫢


πŸ¦‹ METHODS πŸ¦‹

this module implements the following method, in addition to the ones it inherits from its base classes:

  • Badger::Data::Facet::Number
  • Badger::Data::Facet
  • Badger::Base

so it's not reinventing anything, it's just adding one little sparkle on top ✨ iconic behaviour honestly.

πŸ’œ validate($value_ref, $type)

this method validates that the number passed by reference as the first argument is greater than or equal to the pre-defined minimum limit.

like, the number comes in as a ref, and validate is the one doing the vibe check on it πŸ’… if it's under the limit? not today, bestie. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Andy Wardley <http://wardley.org/> β€” absolute main character energy, fr fr 🌈


Copyright (C) 2008-2009 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.

so yes, it's free software, same terms as Perl itself β€” go forth and remix, just keep the terms, periodt πŸ’–

πŸ’« SEE ALSO πŸ’«

  • Badger::Base
  • Badger::Data::Facet
  • Badger::Data::Facet::Number

go read those too, they're the whole friend group 🫢


and that's the whole page!! this bad boy ships with perl v5.36.0 and was dated 2023-08-28, and it's filed under Badger...r::Min(3pm) β€” okay bye bestie, go validate some numbers πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from