line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Form::Processor::Field::Weekday; |
2
|
|
|
|
|
|
|
$Form::Processor::Field::Weekday::VERSION = '1.162360'; |
3
|
2
|
|
|
2
|
|
885
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
45
|
|
4
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
41
|
|
5
|
2
|
|
|
2
|
|
7
|
use base 'Form::Processor::Field::Select'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
720
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init_options { |
10
|
2
|
|
|
2
|
0
|
12
|
my $i = 0; |
11
|
2
|
|
|
|
|
4
|
my @days = qw/ |
12
|
|
|
|
|
|
|
Sunday |
13
|
|
|
|
|
|
|
Monday |
14
|
|
|
|
|
|
|
Tuesday |
15
|
|
|
|
|
|
|
Wednesday |
16
|
|
|
|
|
|
|
Thursday |
17
|
|
|
|
|
|
|
Friday |
18
|
|
|
|
|
|
|
Saturday |
19
|
|
|
|
|
|
|
/; |
20
|
|
|
|
|
|
|
return [ |
21
|
|
|
|
|
|
|
map { |
22
|
2
|
|
|
|
|
4
|
{ value => $i++, label => $_ } |
|
14
|
|
|
|
|
25
|
|
23
|
|
|
|
|
|
|
} @days |
24
|
|
|
|
|
|
|
]; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# ABSTRACT: Select valid day of the week |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |