line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormFu::Constraint::Integer; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
811
|
use strict; |
|
13
|
|
|
|
|
21
|
|
|
13
|
|
|
|
|
689
|
|
4
|
|
|
|
|
|
|
our $VERSION = '2.05'; # VERSION |
5
|
|
|
|
|
|
|
|
6
|
13
|
|
|
13
|
|
48
|
use Moose; |
|
13
|
|
|
|
|
14
|
|
|
13
|
|
|
|
|
87
|
|
7
|
|
|
|
|
|
|
extends 'HTML::FormFu::Constraint::Regex'; |
8
|
|
|
|
|
|
|
|
9
|
62
|
|
|
62
|
1
|
259
|
sub regex {qr/^[0-9]*\z/} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__END__ |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
HTML::FormFu::Constraint::Integer - Unsigned Integer Constraint |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 VERSION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
version 2.05 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Integer constraint. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SEE ALSO |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Is a sub-class of, and inherits methods from L<HTML::FormFu::Constraint::Regex>, |
32
|
|
|
|
|
|
|
L<HTML::FormFu::Constraint> |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
L<HTML::FormFu> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Carl Franks, C<cfranks@cpan.org> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Based on the original source code of L<HTML::Widget::Constraint::Integer>, by |
41
|
|
|
|
|
|
|
Sebastian Riedel, C<sri@oook.de>. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify it under |
46
|
|
|
|
|
|
|
the same terms as Perl itself. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |