line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormHandler::Validate; |
2
|
|
|
|
|
|
|
# ABSTRACT: validation role (internal) |
3
|
|
|
|
|
|
|
$HTML::FormHandler::Validate::VERSION = '0.40068'; |
4
|
|
|
|
|
|
|
|
5
|
145
|
|
|
145
|
|
108633
|
use Moose::Role; |
|
145
|
|
|
|
|
400
|
|
|
145
|
|
|
|
|
1395
|
|
6
|
145
|
|
|
145
|
|
775267
|
use Carp; |
|
145
|
|
|
|
|
405
|
|
|
145
|
|
|
|
|
152275
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'required' => ( isa => 'Bool', is => 'rw', default => '0' ); |
9
|
|
|
|
|
|
|
has 'required_when' => ( is => 'rw', isa => 'HashRef', predicate => 'has_required_when' ); |
10
|
|
|
|
|
|
|
has 'required_message' => ( |
11
|
|
|
|
|
|
|
isa => 'ArrayRef|Str', |
12
|
|
|
|
|
|
|
is => 'rw', |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
has 'unique' => ( isa => 'Bool', is => 'rw', predicate => 'has_unique' ); |
15
|
|
|
|
|
|
|
has 'unique_message' => ( isa => 'Str', is => 'rw' ); |
16
|
|
|
|
|
|
|
has 'range_start' => ( isa => 'Int|Undef', is => 'rw' ); |
17
|
|
|
|
|
|
|
has 'range_end' => ( isa => 'Int|Undef', is => 'rw' ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub test_ranges { |
20
|
939
|
|
|
939
|
0
|
1831
|
my $field = shift; |
21
|
939
|
100
|
100
|
|
|
8096
|
return 1 if $field->can('options') || $field->has_errors; |
22
|
|
|
|
|
|
|
|
23
|
736
|
|
|
|
|
2482
|
my $value = $field->value; |
24
|
|
|
|
|
|
|
|
25
|
736
|
50
|
|
|
|
2286
|
return 1 unless defined $value; |
26
|
|
|
|
|
|
|
|
27
|
736
|
|
|
|
|
20084
|
my $low = $field->range_start; |
28
|
736
|
|
|
|
|
19556
|
my $high = $field->range_end; |
29
|
|
|
|
|
|
|
|
30
|
736
|
100
|
100
|
|
|
2542
|
if ( defined $low && defined $high ) { |
31
|
|
|
|
|
|
|
return |
32
|
31
|
100
|
100
|
|
|
239
|
$value >= $low && $value <= $high ? 1 : |
33
|
|
|
|
|
|
|
$field->add_error( $field->get_message('range_incorrect'), $low, $high ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
705
|
100
|
|
|
|
1950
|
if ( defined $low ) { |
37
|
|
|
|
|
|
|
return |
38
|
2
|
100
|
|
|
|
10
|
$value >= $low ? 1 : |
39
|
|
|
|
|
|
|
$field->add_error( $field->get_message('range_too_low'), $low ); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
703
|
50
|
|
|
|
1884
|
if ( defined $high ) { |
43
|
|
|
|
|
|
|
return |
44
|
0
|
0
|
|
|
|
0
|
$value <= $high ? 1 : |
45
|
|
|
|
|
|
|
$field->add_error( $field->get_message('range_too_high'), $high ); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
703
|
|
|
|
|
1409
|
return 1; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub validate_field { |
52
|
1077
|
|
|
1077
|
0
|
2725
|
my $field = shift; |
53
|
|
|
|
|
|
|
|
54
|
1077
|
50
|
|
|
|
30055
|
return unless $field->has_result; |
55
|
1077
|
|
|
|
|
6219
|
$field->clear_errors; # this is only here for testing convenience |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
# if the 'fields_for_input_without_param' flag is set, and the field doesn't have input, |
58
|
|
|
|
|
|
|
# copy the value to the input. |
59
|
1077
|
100
|
66
|
|
|
4558
|
if ( !$field->has_input && $field->form && $field->form->use_fields_for_input_without_param ) { |
|
|
|
100
|
|
|
|
|
60
|
12
|
|
|
|
|
409
|
$field->result->_set_input($field->value); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
# handle required and required_when processing, and transfer input to value |
63
|
1077
|
|
|
|
|
2528
|
my $continue_validation = 1; |
64
|
1077
|
100
|
100
|
|
|
28780
|
if ( ( $field->required || |
|
|
100
|
100
|
|
|
|
|
|
|
100
|
100
|
|
|
|
|
|
|
100
|
|
|
|
|
|
65
|
|
|
|
|
|
|
( $field->has_required_when && $field->match_when($field->required_when) ) ) && |
66
|
|
|
|
|
|
|
( !$field->has_input || !$field->input_defined ) ) { |
67
|
32
|
|
|
|
|
378
|
$field->missing(1); |
68
|
32
|
|
|
|
|
305
|
$field->add_error( $field->get_message('required'), $field->loc_label ); |
69
|
32
|
100
|
|
|
|
469
|
if( $field->has_input ) { |
70
|
14
|
50
|
|
|
|
424
|
$field->not_nullable ? $field->_set_value($field->input) : $field->_set_value(undef); |
71
|
|
|
|
|
|
|
} |
72
|
32
|
|
|
|
|
111
|
$continue_validation = 0; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
elsif ( $field->DOES('HTML::FormHandler::Field::Repeatable') ) { } |
75
|
|
|
|
|
|
|
elsif ( !$field->has_input ) { |
76
|
58
|
|
|
|
|
160
|
$continue_validation = 0; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
elsif ( !$field->input_defined ) { |
79
|
49
|
100
|
100
|
|
|
1546
|
if ( $field->not_nullable ) { |
|
|
100
|
|
|
|
|
|
80
|
12
|
|
|
|
|
51
|
$field->_set_value($field->input); |
81
|
|
|
|
|
|
|
# handles the case where a compound field value needs to have empty subfields |
82
|
12
|
100
|
|
|
|
66
|
$continue_validation = 0 unless $field->has_flag('is_compound'); |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
elsif ( $field->no_value_if_empty || $field->has_flag('is_contains') ) { |
85
|
3
|
|
|
|
|
11
|
$continue_validation = 0; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
else { |
88
|
34
|
|
|
|
|
223
|
$field->_set_value(undef); |
89
|
34
|
|
|
|
|
85
|
$continue_validation = 0; |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
} |
92
|
1077
|
50
|
66
|
|
|
8753
|
return if ( !$continue_validation && !$field->validate_when_empty ); |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
# do building of node |
95
|
939
|
100
|
|
|
|
16439
|
if ( $field->DOES('HTML::FormHandler::Fields') ) { |
96
|
132
|
|
|
|
|
14638
|
$field->_fields_validate; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
else { |
99
|
807
|
|
|
|
|
49126
|
my $input = $field->input; |
100
|
807
|
100
|
|
|
|
25640
|
$input = $field->inflate( $input ) if $field->has_inflate_method; |
101
|
807
|
|
|
|
|
4182
|
$field->_set_value( $input ); |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
|
104
|
939
|
|
|
|
|
4997
|
$field->_inner_validate_field(); |
105
|
939
|
|
|
|
|
4449
|
$field->_apply_actions; |
106
|
939
|
|
|
|
|
3555
|
$field->validate( $field->value ); |
107
|
939
|
|
|
|
|
3952
|
$field->test_ranges; |
108
|
939
|
50
|
33
|
|
|
3757
|
$field->_validate($field) # form field validation method |
109
|
|
|
|
|
|
|
if ( $field->has_value && defined $field->value ); |
110
|
|
|
|
|
|
|
# validation done, if everything validated, do deflate_value for |
111
|
|
|
|
|
|
|
# final $form->value |
112
|
939
|
100
|
66
|
|
|
31769
|
if( $field->has_deflate_value_method && !$field->has_errors ) { |
113
|
5
|
|
|
|
|
22
|
$field->_set_value( $field->deflate_value($field->value) ); |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
|
116
|
939
|
|
|
|
|
3771
|
return !$field->has_errors; |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
257
|
|
|
sub _inner_validate_field { } |
120
|
|
|
|
|
|
|
|
121
|
847
|
|
|
847
|
0
|
9565
|
sub validate { 1 } |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
has 'actions' => ( |
124
|
|
|
|
|
|
|
traits => ['Array'], |
125
|
|
|
|
|
|
|
isa => 'ArrayRef', |
126
|
|
|
|
|
|
|
is => 'rw', |
127
|
|
|
|
|
|
|
default => sub { [] }, |
128
|
|
|
|
|
|
|
handles => { |
129
|
|
|
|
|
|
|
add_action => 'push', |
130
|
|
|
|
|
|
|
num_actions =>'count', |
131
|
|
|
|
|
|
|
has_actions => 'count', |
132
|
|
|
|
|
|
|
clear_actions => 'clear', |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
); |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
sub _build_apply_list { |
137
|
1165
|
|
|
1165
|
|
2513
|
my $self = shift; |
138
|
1165
|
|
|
|
|
2361
|
my @apply_list; |
139
|
1165
|
|
|
|
|
5439
|
foreach my $sc ( reverse $self->meta->linearized_isa ) { |
140
|
4959
|
|
|
|
|
87999
|
my $meta = $sc->meta; |
141
|
4959
|
50
|
|
|
|
107065
|
if ( $meta->can('calculate_all_roles') ) { |
142
|
4959
|
|
|
|
|
15712
|
foreach my $role ( $meta->calculate_all_roles ) { |
143
|
9601
|
50
|
66
|
|
|
249973
|
if ( $role->can('apply_list') && $role->has_apply_list ) { |
144
|
0
|
|
|
|
|
0
|
foreach my $apply_def ( @{ $role->apply_list } ) { |
|
0
|
|
|
|
|
0
|
|
145
|
0
|
|
|
|
|
0
|
my %new_apply = %{$apply_def}; # copy hashref |
|
0
|
|
|
|
|
0
|
|
146
|
0
|
|
|
|
|
0
|
push @apply_list, \%new_apply; |
147
|
|
|
|
|
|
|
} |
148
|
|
|
|
|
|
|
} |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
} |
151
|
4959
|
100
|
100
|
|
|
243953
|
if ( $meta->can('apply_list') && $meta->has_apply_list ) { |
152
|
61
|
|
|
|
|
142
|
foreach my $apply_def ( @{ $meta->apply_list } ) { |
|
61
|
|
|
|
|
1808
|
|
153
|
130
|
|
|
|
|
228
|
my %new_apply = %{$apply_def}; # copy hashref |
|
130
|
|
|
|
|
538
|
|
154
|
130
|
|
|
|
|
375
|
push @apply_list, \%new_apply; |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
} |
158
|
1165
|
|
|
|
|
39195
|
$self->add_action(@apply_list); |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
sub _apply_actions { |
162
|
939
|
|
|
939
|
|
1779
|
my $self = shift; |
163
|
|
|
|
|
|
|
|
164
|
939
|
|
|
|
|
1949
|
my $error_message; |
165
|
|
|
|
|
|
|
local $SIG{__WARN__} = sub { |
166
|
6
|
|
|
6
|
|
30
|
my $error = shift; |
167
|
6
|
|
|
|
|
13
|
$error_message = $error; |
168
|
6
|
|
|
|
|
47
|
return 1; |
169
|
939
|
|
|
|
|
7094
|
}; |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
my $is_type = sub { |
172
|
1327
|
100
|
|
1327
|
|
7400
|
my $class = blessed shift or return; |
173
|
109
|
|
66
|
|
|
504
|
return $class eq 'MooseX::Types::TypeDecorator' || $class->isa('Type::Tiny'); |
174
|
939
|
|
|
|
|
3442
|
}; |
175
|
|
|
|
|
|
|
|
176
|
939
|
50
|
|
|
|
1911
|
for my $action ( @{ $self->actions || [] } ) { |
|
939
|
|
|
|
|
26437
|
|
177
|
1234
|
|
|
|
|
2464
|
$error_message = undef; |
178
|
|
|
|
|
|
|
# the first time through value == input |
179
|
1234
|
|
|
|
|
3977
|
my $value = $self->value; |
180
|
1234
|
|
|
|
|
2434
|
my $new_value = $value; |
181
|
|
|
|
|
|
|
# Moose constraints |
182
|
1234
|
100
|
100
|
|
|
5257
|
if ( !ref $action || $is_type->($action) ) { |
183
|
28
|
|
|
|
|
147
|
$action = { type => $action }; |
184
|
|
|
|
|
|
|
} |
185
|
1234
|
100
|
|
|
|
3805
|
if ( my $when = $action->{when} ) { |
186
|
6
|
100
|
|
|
|
17
|
next unless $self->match_when($when); |
187
|
|
|
|
|
|
|
} |
188
|
1231
|
100
|
|
|
|
7757
|
if ( exists $action->{type} ) { |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
189
|
101
|
|
|
|
|
169
|
my $tobj; |
190
|
101
|
100
|
|
|
|
236
|
if ( $is_type->($action->{type}) ) { |
191
|
89
|
|
|
|
|
326
|
$tobj = $action->{type}; |
192
|
|
|
|
|
|
|
} |
193
|
|
|
|
|
|
|
else { |
194
|
12
|
|
|
|
|
32
|
my $type = $action->{type}; |
195
|
12
|
50
|
|
|
|
50
|
$tobj = Moose::Util::TypeConstraints::find_type_constraint($type) or |
196
|
|
|
|
|
|
|
die "Cannot find type constraint $type"; |
197
|
|
|
|
|
|
|
} |
198
|
101
|
100
|
100
|
|
|
1987
|
if ( $tobj->has_coercion && $tobj->validate($value) ) { |
199
|
18
|
|
|
|
|
5601
|
eval { $new_value = $tobj->coerce($value) }; |
|
18
|
|
|
|
|
111
|
|
200
|
18
|
100
|
|
|
|
1918
|
if ($@) { |
201
|
1
|
50
|
|
|
|
2517
|
if ( $tobj->has_message ) { |
202
|
1
|
|
|
|
|
31
|
$error_message = $tobj->message->($value); |
203
|
|
|
|
|
|
|
} |
204
|
|
|
|
|
|
|
else { |
205
|
0
|
|
|
|
|
0
|
$error_message = $@; |
206
|
|
|
|
|
|
|
} |
207
|
|
|
|
|
|
|
} |
208
|
|
|
|
|
|
|
else { |
209
|
17
|
|
|
|
|
75
|
$self->_set_value($new_value); |
210
|
|
|
|
|
|
|
} |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
} |
213
|
101
|
|
100
|
|
|
32976
|
$error_message ||= $tobj->validate($new_value); |
214
|
|
|
|
|
|
|
} |
215
|
|
|
|
|
|
|
# now maybe: http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perlsyn.pod#Smart_matching_in_detail |
216
|
|
|
|
|
|
|
# actions in a hashref |
217
|
|
|
|
|
|
|
elsif ( ref $action->{check} eq 'CODE' ) { |
218
|
81
|
100
|
|
|
|
601
|
if ( !$action->{check}->($value, $self) ) { |
219
|
13
|
|
|
|
|
124
|
$error_message = $self->get_message('wrong_value'); |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
elsif ( ref $action->{check} eq 'Regexp' ) { |
223
|
6
|
100
|
|
|
|
38
|
if ( $value !~ $action->{check} ) { |
224
|
5
|
|
|
|
|
31
|
$error_message = [$self->get_message('no_match'), $value]; |
225
|
|
|
|
|
|
|
} |
226
|
|
|
|
|
|
|
} |
227
|
|
|
|
|
|
|
elsif ( ref $action->{check} eq 'ARRAY' ) { |
228
|
17
|
100
|
|
|
|
36
|
if ( !grep { $value eq $_ } @{ $action->{check} } ) { |
|
5
|
|
|
|
|
25
|
|
|
17
|
|
|
|
|
75
|
|
229
|
16
|
|
|
|
|
104
|
$error_message = [$self->get_message('not_allowed'), $value]; |
230
|
|
|
|
|
|
|
} |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
elsif ( ref $action->{transform} eq 'CODE' ) { |
233
|
1026
|
|
|
|
|
2179
|
$new_value = eval { |
234
|
145
|
|
|
145
|
|
1282
|
no warnings 'all'; |
|
145
|
|
|
|
|
493
|
|
|
145
|
|
|
|
|
59812
|
|
235
|
1026
|
|
|
|
|
3558
|
$action->{transform}->($value, $self); |
236
|
|
|
|
|
|
|
}; |
237
|
1026
|
100
|
|
|
|
4132
|
if ($@) { |
238
|
1
|
|
33
|
|
|
8
|
$error_message = $@ || $self->get_message('error_occurred'); |
239
|
|
|
|
|
|
|
} |
240
|
|
|
|
|
|
|
else { |
241
|
1025
|
|
|
|
|
3769
|
$self->_set_value($new_value); |
242
|
|
|
|
|
|
|
} |
243
|
|
|
|
|
|
|
} |
244
|
1231
|
100
|
|
|
|
14233
|
if ( defined $error_message ) { |
245
|
79
|
100
|
|
|
|
338
|
my @message = ref $error_message eq 'ARRAY' ? @$error_message : ($error_message); |
246
|
79
|
100
|
|
|
|
263
|
if ( defined $action->{message} ) { |
247
|
40
|
|
|
|
|
101
|
my $act_msg = $action->{message}; |
248
|
40
|
100
|
|
|
|
138
|
if ( ref $act_msg eq 'CODE' ) { |
249
|
17
|
|
|
|
|
66
|
$act_msg = $act_msg->($value, $self, $error_message); |
250
|
|
|
|
|
|
|
} |
251
|
40
|
100
|
|
|
|
215
|
if ( ref $act_msg eq 'ARRAY' ) { |
|
|
50
|
|
|
|
|
|
252
|
7
|
|
|
|
|
15
|
@message = @{$act_msg}; |
|
7
|
|
|
|
|
22
|
|
253
|
|
|
|
|
|
|
} |
254
|
|
|
|
|
|
|
elsif ( ref \$act_msg eq 'SCALAR' ) { |
255
|
33
|
|
|
|
|
139
|
@message = ($act_msg); |
256
|
|
|
|
|
|
|
} |
257
|
|
|
|
|
|
|
} |
258
|
79
|
|
|
|
|
415
|
$self->add_error(@message); |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
} |
261
|
|
|
|
|
|
|
} |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
sub match_when { |
264
|
12
|
|
|
12
|
0
|
34
|
my ( $self, $when ) = @_; |
265
|
|
|
|
|
|
|
|
266
|
12
|
|
|
|
|
31
|
my $matched = 0; |
267
|
12
|
|
|
|
|
56
|
foreach my $key ( keys %$when ) { |
268
|
12
|
|
|
|
|
33
|
my $check_against = $when->{$key}; |
269
|
12
|
|
|
|
|
38
|
my $from_form = ( $key =~ /^\+/ ); |
270
|
12
|
|
|
|
|
36
|
$key =~ s/^\+//; |
271
|
12
|
100
|
|
|
|
362
|
my $field = $from_form ? $self->form->field($key) : $self->parent->subfield( $key ); |
272
|
12
|
50
|
|
|
|
40
|
unless ( $field ) { |
273
|
0
|
|
|
|
|
0
|
warn "field '$key' not found processing 'when' for '" . $self->full_name . "'"; |
274
|
0
|
|
|
|
|
0
|
next; |
275
|
|
|
|
|
|
|
} |
276
|
12
|
50
|
|
|
|
54
|
my $field_fif = defined $field->fif ? $field->fif : ''; |
277
|
12
|
100
|
|
|
|
66
|
if ( ref $check_against eq 'CODE' ) { |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
278
|
4
|
100
|
|
|
|
27
|
$matched++ |
279
|
|
|
|
|
|
|
if $check_against->($field_fif, $self); |
280
|
|
|
|
|
|
|
} |
281
|
|
|
|
|
|
|
elsif ( ref $check_against eq 'ARRAY' ) { |
282
|
2
|
|
|
|
|
7
|
foreach my $value ( @$check_against ) { |
283
|
6
|
100
|
|
|
|
20
|
$matched++ if ( $value eq $field_fif ); |
284
|
|
|
|
|
|
|
} |
285
|
|
|
|
|
|
|
} |
286
|
|
|
|
|
|
|
elsif ( $check_against eq $field_fif ) { |
287
|
3
|
|
|
|
|
8
|
$matched++; |
288
|
|
|
|
|
|
|
} |
289
|
|
|
|
|
|
|
else { |
290
|
3
|
|
|
|
|
24
|
$matched = 0; |
291
|
3
|
|
|
|
|
12
|
last; |
292
|
|
|
|
|
|
|
} |
293
|
|
|
|
|
|
|
} |
294
|
12
|
|
|
|
|
187
|
return $matched; |
295
|
|
|
|
|
|
|
} |
296
|
|
|
|
|
|
|
|
297
|
145
|
|
|
145
|
|
1311
|
use namespace::autoclean; |
|
145
|
|
|
|
|
377
|
|
|
145
|
|
|
|
|
1617
|
|
298
|
|
|
|
|
|
|
1; |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
__END__ |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
=pod |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
=encoding UTF-8 |
305
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
=head1 NAME |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
HTML::FormHandler::Validate - validation role (internal) |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
=head1 VERSION |
311
|
|
|
|
|
|
|
|
312
|
|
|
|
|
|
|
version 0.40068 |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
=head1 SYNOPSIS |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
This is a role that contains validation and transformation code |
317
|
|
|
|
|
|
|
used by L<HTML::FormHandler::Field>. |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
=head1 AUTHOR |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
FormHandler Contributors - see HTML::FormHandler |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Gerda Shank. |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
328
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
=cut |