line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
786
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
125
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::FormFu::Filter::NonNumeric; |
4
|
|
|
|
|
|
|
$HTML::FormFu::Filter::NonNumeric::VERSION = '2.07'; |
5
|
|
|
|
|
|
|
# ABSTRACT: filter removing all non-numeric characters |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
13
|
use Moose; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
32
|
|
8
|
|
|
|
|
|
|
extends 'HTML::FormFu::Filter::Regex'; |
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
1
|
11
|
sub match {qr/\D+/} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding UTF-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
HTML::FormFu::Filter::NonNumeric - filter removing all non-numeric characters |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 VERSION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
version 2.07 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Remove all non-numeric characters. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 AUTHOR |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Carl Franks, C<cfranks@cpan.org> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 LICENSE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify it under |
41
|
|
|
|
|
|
|
the same terms as Perl itself. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Carl Franks <cpan@fireartist.com> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This software is copyright (c) 2018 by Carl Franks. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
52
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |