1HTML::FormFu::Filter::CUosmeprouCnodnStprriibnuttfe(d3H)PTeMrLl::DFoocrummFeun:t:aFtiilotner::CompoundSprintf(3)
2
3
4
6 HTML::FormFu::Filter::CompoundSprintf - CompoundSprintf filter
7
9 version 2.07
10
12 ---
13 element:
14 - type: Multi
15 name: date
16
17 elements:
18 - name: day
19 - name: month
20 - name: year
21
22 filter:
23 - type: CompoundSprintf
24 sprintf: '%02d-%02d-%04d'
25
26 # get the compound-value
27
28 my $date = $form->param_value('date');
29
31 For use with a HTML::FormFu::Element::Multi group of fields.
32
33 Uses a sprintf pattern to join the input from several fields into a
34 single value.
35
37 sprintf
38 Arguments: $string
39
40 "sprintf" pattern used to join the individually submitted parts. The
41 pattern is passed to the perl-core "sprintf" function.
42
43 field_order
44 Inherited. See "field_order" in HTML::FormFu::Filter::_Compound for
45 details.
46
47 ---
48 element:
49 - type: Multi
50 name: date
51
52 elements:
53 - name: month
54 - name: day
55 - name year
56
57 filter:
58 - type: CompoundSprintf
59 field_order:
60 - day
61 - month
62 - year
63
65 Carl Franks, "cfranks@cpan.org"
66
68 This library is free software, you can redistribute it and/or modify it
69 under the same terms as Perl itself.
70
72 Carl Franks <cpan@fireartist.com>
73
75 This software is copyright (c) 2018 by Carl Franks.
76
77 This is free software; you can redistribute it and/or modify it under
78 the same terms as the Perl 5 programming language system itself.
79
80
81
82perl v5.32.1 2021-H0T1M-L2:7:FormFu::Filter::CompoundSprintf(3)