HTML::...ndJoin(3pm)
π HTML::FormFu::Filter::CompoundJoin π
okay bestie, welcome to the User Contributed Perl Documentation page for HTML::FormFu::Filter::CompoundJoin(3pm) β yes that's a whole mouthful, we're just gonna call it the CompoundJoin filter, periodt β¨
β¨ NAME β¨
HTML::FormFu::Filter::CompoundJoin β the CompoundJoin filter, and that's the whole vibe πΈ
π VERSION π
version 2.07 β she's got lore, she's got history, she's iconic π
π SYNOPSIS π
here's the whole setup, copy it, don't tweak it, it's perfect:
---
element:
- type: Multi
name: address
elements:
- name: number
- name: street
filter:
- type: CompoundJoin
and then, to actually get the compound-value back out:
# get the compound-value
my $address = $form->param_value('address');
like... param_value('address') and boom, the joined-up value is yours π«Ά
π¦ DESCRIPTION π¦
okay so lowkey the whole point: this filter is for use with a HTML::FormFu::Element::Multi group of fields. that's it, that's the assignment.
what does it actually do? it joins the input from several fields into a single value. several little inputs walk in, one single value walks out. main character energy fr fr π
π METHODS π
π« join
- Arguments:
$string - Default Value:
' '
this is the string used to join the individually submitted parts. and if you don't say anything? defaults to a single space. so "123" + "Main St" becomes "123 Main St" β cute, tidy, no notes π
πΈ field_order
Inherited. bestie, go read "field_order" in HTML::FormFu::Filter::_Compound for the full details, we're not re-explaining it here, we're just showing you the glow-up π
---
element:
- type: Multi
name: address
elements:
- name: street
- name: number
filter:
- type: CompoundJoin
field_order:
- number
- street
see how the elements are listed street then number, but field_order flips it to number then street? yeah. you control the order. you're in charge. slay π
β 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. free as in go off, do your thing, no cap ποΈ
π AUTHOR π
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.
bestie reminder: that license line is doing real legal work, don't paraphrase it in your own project, okay? π
and that's the page!! this one's perl v5.28.1, dated 2019-01-12, brought to you by the HTML::FormFu::Filter::CompoundJoin(3pm) girlies β¨ mwah, go join some fields, you're gonna eat ππ
π¦ 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