HTML::...ckOnce(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– HTML::FormFu::Constraint::CallbackOnce β€” the manual, but make it cute πŸ’–

okay bestie, so this is the page for HTML::FormFu::Constraint::CallbackOnce from the User Contributed Perl Documentation (that's the 3pm situation, iykyk). Strap in, it's short but it's iconic. πŸŽ€


✨ NAME ✨

HTML::FormFu::Constraint::CallbackOnce - Code Callback Constraint

like... that's the name. it does the thing. πŸ¦‹


🌸 VERSION 🌸

version 2.07


πŸ’… SYNOPSIS πŸ’…

$form->constraint({
    type => 'CallbackOnce',
    name => 'foo',
    callback => \&sfoo,
});

sub foo {
    my ( $value, $params ) = @_;

    # return true or false
}

no cap, that's the whole vibe. you hand it a callback and it runs it. 🫢


🧚 DESCRIPTION 🧚

Unlike HTML::FormFu::Constraint::Callback (ngl the original page literally spells it "Unlinke" and we love that for it), this callback is only called once, regardless of how many values are submitted. one and done. main character energy, zero repeats. πŸ‘‘

The first argument passed to the callback is the submitted value for the associated field; this may be a single value or an arrayref of value. so like, could be one lil thing, could be a whole list. surprise mechanics. πŸ™ˆ

The second argument passed to the callback is a hashref of name/value pairs for all input fields. yes, all of them. the whole roster. ⭐

⚠️ heads up bestie: this constraint doesn't honour the not() value. so don't try it. it will simply not. πŸ’€

πŸ’– METHODS πŸ’–

πŸŽ€ callback

Arguments: \&sub_ref


🌈 SEE ALSO 🌈

  • Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
  • HTML::FormFu

πŸ’œ AUTHOR πŸ’œ

Carl Franks cfranks@cpan.org


πŸ“ LICENSE πŸ“

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


✨ AUTHOR (yes, again) ✨

Carl Franks <cpan@fireartist.com>


This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, bestie!! πŸ¦‹ this beauty is running on perl v5.28.1, dated 2019-01-12, and the manpage tag on it is HTML::...ckOnce(3pm). go forth and callback exactly once. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from