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