HTML::...::Equal(3pm)

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

πŸ’– HTML::...::Equal(3pm) β€” the Equal Constraint glow-up πŸ’–

okay bestie, listen. this is a page from the User Contributed Perl Documentation, section 3pm, and it's all about HTML::Widget::Constraint::Equal β€” the Equal Constraint. she's short, she's sweet, she has exactly one job and she does it. no notes. πŸŽ€


✨ NAME ✨

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


✨ SYNOPSIS ✨

here's the whole vibe, copy it exactly bestie, do not freestyle:

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

✨ DESCRIPTION ✨

okay so. Equal Constraint. all the elements you hand her must be the same. that's the whole personality. if they're not equal, she's gonna have feelings about it (the feelings are errors, more on that below).

and here's the pro tip β€” the combo move, the collab we didn't know we needed: combine this with the All constraint to make sure all elements are equal. Equal alone does her thing, All + Equal is the full ensemble. periodt. πŸ‘‘


✨ METHODS ✨

🫢 process

she's here. she's listed. that's the whole entry. (the manpage says nothing else about her, so neither will I β€” we don't invent lore in this house 🫑)

🫢 render_errors

Arguments: @names

a list of element names for which an error should be displayed. like, you get to pick who gets yelled at, basically. πŸ’€

if this is not set, the default behaviour is for the error to be displayed for all of the Constraint's named elements. so no arguments = everybody catches these hands, no cap.

✨ AUTHOR ✨

Marcus Ramberg, mramberg@cpan.org β€” the icon, the legend, the moment. 🌟


✨ LICENSE ✨

this library is free software β€” you can redistribute it and/or modify it under the same terms as Perl itself. so go forth, remix her, she's yours, no gatekeeping. πŸ¦‹


and that's the whole page bestie, we ate and left no crumbs. this was pulled from perl v5.36.0, dated 2023-08-10, and honestly? timeless. bye pookie, go make your elements equal πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from