line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Header: /home/fergal/my/cvs/Code-Perl/lib/Code/Perl/Expr/List.pm,v 1.1 2003/06/17 14:14:21 fergal Exp $ |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Code::Perl::Expr::List; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
4
|
use base 'Code::Perl::Expr::Constant'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
203
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub eval |
10
|
|
|
|
|
|
|
{ |
11
|
5
|
|
|
5
|
0
|
31
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
|
|
8
|
return map { $_->eval } @{$self->getValue}; |
|
10
|
|
|
|
|
102
|
|
|
5
|
|
|
|
|
161
|
|
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub perl |
17
|
|
|
|
|
|
|
{ |
18
|
5
|
|
|
5
|
0
|
57
|
my $self = shift; |
19
|
|
|
|
|
|
|
|
20
|
5
|
|
|
|
|
7
|
return join(", ", map {$_->perl} @{$self->getValue}); |
|
10
|
|
|
|
|
326
|
|
|
5
|
|
|
|
|
179
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |