HTML::...nt::Any(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::Widget::Constraint::Any β€” the "any of y'all" constraint πŸ’–

okay so bestie, you know HTML::Widget::Constraint::Any? it's from HTML::Widget, and it lives in the Constraint::Any slot of the module family. it's a perl manual page, version perl v5.36.0, and it is SO much simpler than it sounds. let's go 🫢


✨ NAME ✨

HTML::Widget::Constraint::Any β€” the Any Constraint. that's it, that's the name, iconic πŸ’…


🌸 SYNOPSIS 🌸

my $c = $widget->constraint( 'Any', 'foo', 'bar' );

look at her. two fields, one constraint, zero drama ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

One or more of the named fields must be present. πŸŽ€

that's the whole vibe check, fr fr. if you name a bunch of fields, at least ONE of them has to show up. not all of them, not none of them β€” one or more. periodt.


πŸ‘‘ METHODS πŸ‘‘

process

no extra notes on this one in the original, bestie. it's just listed here, so i'm not gonna make stuff up about it πŸ™ˆ

default_message

same energy β€” listed, no description given. she's mysterious, she's lowkey, we respect her πŸ’œ

render_errors

Arguments: @names

A list of element names for which an error should be displayed.

If this is not set, the default behaviour is for the error to be displayed for all of the Constraint's named elements.

so basically: if you don't tell her where to put the error, she's gonna put it on every single one of the constraint's named elements. no cap. if you DO pass @names, she only shows the error on those. choose wisely, bestie πŸŽ€

🌈 AUTHOR 🌈

Sebastian Riedel, sri@oook.de β€” thank you king πŸ‘‘


πŸ’œ LICENSE πŸ’œ

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole page!! no missing flags, no skipped sections, everything exactly where it belongs πŸ’–

this was HTML::...nt::Any(3pm) from the perl v5.36.0 manual set, dated 2023-08-10 β€” written by the User Contributed Perl Documentation crew. love that for us πŸ¦‹βœ¨

πŸ“¦ where this page comes from