line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::SymbolicX::Calculator::Command::Assignment; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
14
|
use 5.006; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
4
|
use base 'Math::SymbolicX::Calculator::Command'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
210
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
0
|
|
|
0
|
1
|
|
my $proto = shift; |
12
|
0
|
|
0
|
|
|
|
my $class = ref($proto)||$proto; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my %args = @_; |
15
|
0
|
|
|
|
|
|
my $self = bless { |
16
|
|
|
|
|
|
|
symbol => $args{symbol}, |
17
|
|
|
|
|
|
|
object => $args{object}, |
18
|
|
|
|
|
|
|
} => $class; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub _execute { |
24
|
0
|
|
|
0
|
|
|
my $self = shift; |
25
|
0
|
|
|
|
|
|
my $c = shift; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
my $sym = $self->{symbol}; |
28
|
0
|
|
|
|
|
|
my $func = $self->{object}; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
$c->{stash}{$sym} = $func; |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return($sym, '==', $func); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |