HTML::...ckOnce(3pm)
π 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>
π COPYRIGHT AND LICENSE π
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
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· 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