line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Header: /home/fergal/my/cvs/Code-Perl/lib/Code/Perl/Expr/Scalar.pm,v 1.1 2003/06/17 14:14:21 fergal Exp $ |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Code::Perl::Expr::Scalar; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use base 'Code::Perl::Expr::Base'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
560
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use Class::MethodMaker ( |
10
|
1
|
|
|
|
|
8
|
get_set => [qw( -java Name )] |
11
|
1
|
|
|
1
|
|
1047
|
); |
|
1
|
|
|
|
|
24496
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub eval |
14
|
|
|
|
|
|
|
{ |
15
|
10
|
|
|
10
|
0
|
819
|
my $self = shift; |
16
|
|
|
|
|
|
|
|
17
|
10
|
|
|
|
|
348
|
my $name = $self->getName; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
18635
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
20
|
|
|
|
|
|
|
|
21
|
10
|
|
|
|
|
113
|
return ${$name}; |
|
10
|
|
|
|
|
43
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub perl |
25
|
|
|
|
|
|
|
{ |
26
|
10
|
|
|
10
|
0
|
99
|
my $self = shift; |
27
|
|
|
|
|
|
|
|
28
|
10
|
|
|
|
|
490
|
return '$'.$self->getName; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |