1HTML::FormFu::Filter::CUaslelrbaCcokn(t3r)ibuted Perl DoHcTuMmLe:n:tFaotrimoFnu::Filter::Callback(3)
2
3
4

NAME

6       HTML::FormFu::Filter::Callback - filter with custom subroutine
7

VERSION

9       version 2.07
10

SYNOPSIS

12           $field->filter({
13               type     => 'Callback',
14               callback => \&my_filter,
15           });
16
17           ---
18           elements:
19             - type: Text
20               name: foo
21               filters:
22                 - type: Callback
23                   callback: "main::my_filter"
24
25           sub my_filter {
26               my ($value) = @_;
27
28               # do something to $value
29
30               return $value;
31           }
32

DESCRIPTION

34       Filter using a user-provided subroutine.
35

METHODS

37   callback
38       Arguments: \&code-reference
39
40       Arguments: "subroutine-name"
41

AUTHOR

43       Carl Franks, "cfranks@cpan.org"
44
45       Based on the original source code of HTML::Widget::Filter::Callback, by
46       Lyo Kato, "lyo.kato@gmail.com"
47

LICENSE

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

AUTHOR

53       Carl Franks <cpan@fireartist.com>
54
56       This software is copyright (c) 2018 by Carl Franks.
57
58       This is free software; you can redistribute it and/or modify it under
59       the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.32.0                      2020-07-28 HTML::FormFu::Filter::Callback(3)
Impressum