line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VS::RuleEngine::Action::SetLocal; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
970
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Carp qw(croak); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use VS::RuleEngine::Constants; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
6
|
use base qw(VS::RuleEngine::Action); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
230
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
1
|
|
|
1
|
1
|
3
|
my ($pkg, %args) = @_; |
14
|
1
|
|
|
|
|
4
|
my $self = bless \%args, $pkg; |
15
|
1
|
|
|
|
|
4
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub perform { |
19
|
1
|
|
|
1
|
1
|
3
|
my ($self, $local) = @_[KV_SELF, KV_LOCAL]; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
|
|
12
|
while (my ($k, $v) = each %$self) { |
22
|
2
|
|
|
|
|
7
|
$local->set($k => $v); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |