line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Interface::File::Base; |
6
|
|
|
|
|
|
|
|
7
|
15
|
|
|
15
|
|
336
|
use v5.12.5; |
|
15
|
|
|
|
|
131
|
|
8
|
15
|
|
|
15
|
|
148
|
use warnings; |
|
15
|
|
|
|
|
94
|
|
|
15
|
|
|
|
|
4193
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.3'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
189
|
|
|
189
|
0
|
541
|
my $that = shift; |
14
|
189
|
|
33
|
|
|
1953
|
my $proto = ref($that) || $that; |
15
|
189
|
|
|
|
|
749
|
my $self = {@_}; |
16
|
|
|
|
|
|
|
|
17
|
189
|
|
|
|
|
533
|
bless( $self, $proto ); |
18
|
|
|
|
|
|
|
|
19
|
189
|
|
|
|
|
652
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub open { die("Must be implemented by Interface Class."); } |
23
|
0
|
|
|
0
|
0
|
|
sub read { die("Must be implemented by Interface Class."); } |
24
|
0
|
|
|
0
|
0
|
|
sub write { die("Must be implemented by Interface Class."); } |
25
|
0
|
|
|
0
|
0
|
|
sub close { die("Must be implemented by Interface Class."); } |
26
|
0
|
|
|
0
|
0
|
|
sub seek { die("Must be implemented by Interface Class."); } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |