line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: ** Please provide abstract ** |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Form::Processor::Field::WeekdayStr; |
4
|
|
|
|
|
|
|
$Form::Processor::Field::WeekdayStr::VERSION = '1.162360'; |
5
|
1
|
|
|
1
|
|
887
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
6
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
7
|
1
|
|
|
1
|
|
3
|
use base 'Form::Processor::Field::Weekday'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
352
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Join the list of values into a single string |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub input_to_value { |
14
|
8
|
|
|
8
|
1
|
5
|
my $field = shift; |
15
|
|
|
|
|
|
|
|
16
|
8
|
|
|
|
|
8
|
my $input = $field->input; |
17
|
|
|
|
|
|
|
|
18
|
8
|
100
|
|
|
|
25
|
return $field->value( join '', ref $input ? @{$input} : $input ); |
|
1
|
|
|
|
|
3
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub format_value { |
22
|
0
|
|
|
0
|
1
|
|
my $field = shift; |
23
|
|
|
|
|
|
|
|
24
|
0
|
0
|
|
|
|
|
return () unless defined $field->value; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return ( $field->name, [ split //, $field->value ] ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |