| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Schedule::Cron::Nofork; |
|
2
|
|
|
|
|
|
|
|
|
3
|
113
|
|
|
113
|
|
130054
|
use strict; |
|
|
113
|
|
|
|
|
338
|
|
|
|
113
|
|
|
|
|
5300
|
|
|
4
|
113
|
|
|
113
|
|
677
|
use warnings; |
|
|
113
|
|
|
|
|
113
|
|
|
|
113
|
|
|
|
|
4294
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
113
|
|
|
113
|
|
1572
|
use base 'Schedule::Cron'; |
|
|
113
|
|
|
|
|
225
|
|
|
|
113
|
|
|
|
|
135609
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
113
|
|
|
113
|
|
6495042
|
use vars qw($VERSION); |
|
|
113
|
|
|
|
|
338
|
|
|
|
113
|
|
|
|
|
33201
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$VERSION = '0.03'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub execute { |
|
13
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
|
14
|
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
0
|
my $index = shift; |
|
16
|
0
|
|
|
|
|
0
|
my $args = $self->{args}->[$index]; |
|
17
|
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
0
|
my $dispatch = $args->[0]; |
|
19
|
0
|
0
|
|
|
|
0
|
die "No subroutine provided with $dispatch" |
|
20
|
|
|
|
|
|
|
unless ref($dispatch) eq "CODE"; |
|
21
|
0
|
|
|
|
|
0
|
$args = $args->[1]; |
|
22
|
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
0
|
my @args; |
|
24
|
0
|
0
|
0
|
|
|
0
|
if (defined($args) && defined($args->[0])) { |
|
25
|
0
|
|
|
|
|
0
|
push @args,@$args; |
|
26
|
|
|
|
|
|
|
#dbg "Calling dispatch with ","@args"; |
|
27
|
|
|
|
|
|
|
} else { |
|
28
|
|
|
|
|
|
|
#dbg "Calling dispatch with no args"; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
0
|
$dispatch->(@args); |
|
32
|
|
|
|
|
|
|
}; |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
|
35
|
|
|
|
|
|
|
__END__ |