line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package EO::System; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
24242
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
84
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
48
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
2059
|
use IO::Handle; |
|
2
|
|
|
|
|
17218
|
|
|
2
|
|
|
|
|
114
|
|
7
|
2
|
|
|
2
|
|
1152
|
use EO::Singleton; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use EO::System::OS; |
9
|
|
|
|
|
|
|
use EO::System::Perl; |
10
|
|
|
|
|
|
|
use base qw( EO::Singleton ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = 0.96; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub init { |
15
|
|
|
|
|
|
|
my $self = shift; |
16
|
|
|
|
|
|
|
if ($self->SUPER::init( @_ )) { |
17
|
|
|
|
|
|
|
$self->{out} = \*STDOUT; |
18
|
|
|
|
|
|
|
$self->{in} = \*STDIN; |
19
|
|
|
|
|
|
|
$self->{error} = \*STDERR; |
20
|
|
|
|
|
|
|
return 1; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
return 0; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub out { |
26
|
|
|
|
|
|
|
my $self = shift; |
27
|
|
|
|
|
|
|
$self = __PACKAGE__->new(); |
28
|
|
|
|
|
|
|
if (@_) { |
29
|
|
|
|
|
|
|
$self->{ out } = shift; |
30
|
|
|
|
|
|
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
return $self->{ out }; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub in { |
36
|
|
|
|
|
|
|
my $self = shift; |
37
|
|
|
|
|
|
|
$self = __PACKAGE__->new(); |
38
|
|
|
|
|
|
|
if (@_) { |
39
|
|
|
|
|
|
|
$self->{ in } = shift; |
40
|
|
|
|
|
|
|
return $self; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
return $self->{ in }; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub error { |
46
|
|
|
|
|
|
|
my $self = shift; |
47
|
|
|
|
|
|
|
$self = __PACKAGE__->new(); |
48
|
|
|
|
|
|
|
if (@_) { |
49
|
|
|
|
|
|
|
$self->{ error } = shift; |
50
|
|
|
|
|
|
|
return $self; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
return $self->{ error }; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub perl { |
57
|
|
|
|
|
|
|
return EO::System::Perl->new(); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub os { |
61
|
|
|
|
|
|
|
return EO::System::OS->new(); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; |