blib/lib/FTN/Outbound/Reference_file.pm

filter: Statementstmt 69.9% 86 / 123 Branchbran 36.9% 31 / 84 Conditioncond 26.6% 4 / 15 MC/DCmcdc 0.0% 0 / 10 Subroutinesub 92.3% 12 / 13 Podpod 100% 6 / 6 totaltotal 55.3% 139 / 251 CC 50 SCAR 36.9
CC
50
Cov
55%
read_existing_file
131.5
process_lines
42.0
new
15.1
CRAP 40.2
↑ Summary
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package FTN::Outbound::Reference_file;
6 2 $FTN::Outbound::Reference_file::VERSION = '20170409';
7  
8 # fts-5005.002 BinkleyTerm Style Outbound
9  
10 # Reference files consist of a number of lines (terminated by 0x0a or 0x0d,0x0a) each consisting of the name of the file to transfer to the remote system.
11  
12 2 ▶use Log::Log4perl ();
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶use Encode::Locale ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use Encode ();
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # use File::Basename ();
17  
18  
19 2 my @line_joiner = ( "\x0a",
20 "\x0d\x0a",
21 );
22  
23 2 my $prefix_re = qr/[-#^~!@]/; # fts-5005.002
24  
25 =head1 NAME
26  
27 FTN::Outbound::Reference_file - Object-oriented module for working with FTN reference files.
28  
29 =head1 VERSION
30  
31 version 20170409
32  
33 =head1 SYNOPSIS
34  
35 use Log::Log4perl ();
36 use Encode ();
37 use FTN::Outbound::Reference_file ();
38  
39 Log::Log4perl -> easy_init( $Log::Log4perl::INFO );
40  
41 my $reference_file = FTN::Outbound::Reference_file -> new( '/var/lib/ftn/outbound/fidonet/00010001.flo',
42 sub {
43 Encode::decode( 'cp866', shift );
44 },
45 sub {
46 Encode::encode( 'cp866', shift );
47 },
48 "\x0d\x0a",
49 );
50  
51 $reference_file
52 -> read_existing_file
53 -> push_reference( '#', '/tmp/file_to_transfer' )
54 -> write_file;
55  
56 =head1 DESCRIPTION
57  
58 FTN::Outbound::Reference_file module is for working with reference files in FTN following specifications from fts-5005.002 document.
59  
60 =head1 OBJECT CREATION
61  
62 =head2 new
63  
64 my $reference_file = FTN::Outbound::Reference_file -> new( 'filename',
65 sub {
66 Encode::decode( 'UTF-8', shift );
67 },
68 sub {
69 Encode::encode( 'UTF-8', shift );
70 },
71 chr( 0x0a ),
72 );
73  
74 First parameter is a filename as a character string.
75  
76 Second parameter is either undef (in case no reading from the file expected (means file does not exist)) or sub reference that takes octet string (read from the existing reference file) and returns character string. In simplest case does just decoding from some predefined character set used by your software. Also might do other transformations. For example if other software uses relative path, this is the place where you transform it to absolute path by some rules. Output result used only in memory processing and won't be written to the file.
77  
78 Third parameter is either undef (in case no updates expected) or sub reference that takes character string and returns octet stream that will be written to the file. Used only by push_reference method.
79  
80 Forth parameter defines line joiner as standard allows two of them. If not defined or omitted will be either figured out from existing file (if possible) or character with code 0x0a will be used.
81  
82 =cut
83  
84 2 ▶sub new {
Subroutine new: called CC=13 SCAR=27.2
Pod documented
85 2 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
86  
87 2 ▶ ref( my $class = shift ) and $logger -> logcroak( "I'm only a class method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $class = shift()) and $logger->logcroak("I'm only a class method!") 0 2 2
88  
89 2 my ( $reference_file,
90 $reference_file_read_line_transform_sub,
91 $reference_file_write_line_transform_sub,
92 $line_joiner,
93 ) = @_;
94  
95 2 ▶ $logger -> logdie( 'reference file name cannot be undefined' )
Branch: 1 branch
BranchTrueFalseTotal
unless defined $reference_file 0 2 2
96 unless defined $reference_file;
97  
98 2 $logger -> debug( sprintf 'reference file name %s',
99 $reference_file,
100 );
101  
102 2 my %self = ( reference_file => $reference_file );
103  
104 2 ▶ $logger -> logdie( 'not valid reference file read line transform subroutine reference was passed as second argument' )
Branch: 1 branch
BranchTrueFalseTotal
if defined $reference_file_read_line_transform_sub and ref $reference_file_read_line_transform_sub ne "CODE" 0 2 2
Condition33%1/3
defined $reference_file_read_line_transform_sub and ref $reference_file_read_line_transform_sub ne "CODE"
!ll&&!rl&&r
020
MC/DC0%0/2
defined $reference_file_read_line_transform_sub and ref $reference_file_read_line_transform_sub ne "CODE"
defined $reference_file_read_line_transform_sub ref $reference_file_read_line_transform_sub ne "CODE"
Truth table33%1/3
A and B
A= defined $reference_file_read_line_transform_subB= ref $reference_file_read_line_transform_sub ne "CODE"
ABresult
0X0
100
111
105 if defined $reference_file_read_line_transform_sub
106 && ref $reference_file_read_line_transform_sub ne 'CODE';
107  
108 2 ▶ $logger -> debug( sprintf 'reference file read line transform sub reference was%s passed',
Branch: 1 branch
BranchTrueFalseTotal
defined $reference_file_read_line_transform_sub ? : 2 0 2
109 defined $reference_file_read_line_transform_sub ?
110 ''
111 : ' not'
112 );
113  
114 2 ▶ $self{reference_file_read_line_transform_sub} = $reference_file_read_line_transform_sub
Branch: 1 branch
BranchTrueFalseTotal
if defined $reference_file_read_line_transform_sub 2 0 2
115 if defined $reference_file_read_line_transform_sub;
116  
117 2 ▶ $logger -> logdie( 'not valid reference file write line transform subroutine reference was passed as third argument' )
Branch: 1 branch
BranchTrueFalseTotal
if defined $reference_file_write_line_transform_sub and ref $reference_file_write_line_transform_sub ne "CODE" 0 2 2
Condition66%2/3
defined $reference_file_write_line_transform_sub and ref $reference_file_write_line_transform_sub ne "CODE"
!ll&&!rl&&r
110
MC/DC0%0/2
defined $reference_file_write_line_transform_sub and ref $reference_file_write_line_transform_sub ne "CODE"
defined $reference_file_write_line_transform_sub ref $reference_file_write_line_transform_sub ne "CODE"
Truth table66%2/3
A and B
A= defined $reference_file_write_line_transform_subB= ref $reference_file_write_line_transform_sub ne "CODE"
ABresult
0X0
100
111
118 if defined $reference_file_write_line_transform_sub
119 && ref $reference_file_write_line_transform_sub ne 'CODE';
120  
121 2 ▶ $logger -> debug( sprintf 'reference file write line transform sub reference was%s passed',
Branch: 1 branch
BranchTrueFalseTotal
defined $reference_file_write_line_transform_sub ? : 1 1 2
122 defined $reference_file_write_line_transform_sub ?
123 ''
124 : ' not'
125 );
126  
127 2 ▶ $self{reference_file_write_line_transform_sub} = $reference_file_write_line_transform_sub
Branch: 1 branch
BranchTrueFalseTotal
if defined $reference_file_write_line_transform_sub 1 1 2
128 if defined $reference_file_write_line_transform_sub;
129  
130 2 ▶ if ( defined $line_joiner ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $line_joiner) { } 1 1 2
131 1 ▶ $logger -> logdie( 'incorrect line joiner: ', $line_joiner )
Branch: 1 branch
BranchTrueFalseTotal
unless grep(($line_joiner eq $_), @line_joiner) 0 1 1
132 unless grep $line_joiner eq $_, @line_joiner;
133  
134 1 $self{line_joiner} = $line_joiner;
135 } else {
136 1 $logger -> debug( 'line joiner undefined' );
137 }
138  
139 2 bless \ %self, $class;
140 }
141  
142 1 ▶sub _file_info {
Subroutine _file_info: called CC=3 SCAR=11.7
143 1 my $filename = shift;
144 1 my $hashref = shift;
145  
146 1 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
147  
148 1 $hashref -> {full_name} = $filename;
149 # $hashref -> {name} = File::Basename::basename( $filename );
150  
151 1 ▶ if ( -e Encode::encode( locale_fs => $filename ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-e &Encode::encode('locale_fs', $filename)) { } 1 0 1
152 1 ▶ if ( -f _ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f _) { } 1 0 1
153 1 $hashref -> {size} = -s _;
154 1 $hashref -> {mstat} = ( stat _ )[ 9 ];
155 } else {
156 0 $logger -> warn( sprintf 'referenced file %s is not actually a file',
157 $filename,
158 );
159 }
160 } else {
161 0 $logger -> warn( sprintf 'referenced file %s does not exist',
162 $filename,
163 );
164 }
165 }
166  
167 =head1 FILE READ/WRITE
168  
169 =head2 read_existing_file
170  
171 Method for explicit reading of existing file. If file exists, this method has not been called and you're trying to update or write file it will be called implicitly before that.
172  
173 Does not expect any arguments.
174  
175 If file exists and isn't empty it will be read and each line will be passed to the sub reference which was passed as second parameter to the constructor.
176  
177 Returns itself for method chaining.
178  
179 =cut
180  
181 1 ▶sub read_existing_file {
Subroutine read_existing_file: called CC=14 SCAR=48.8
Pod documented
182 1 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
183  
184 1 ▶ ref( my $self = shift ) or $logger -> logcroak( "I'm only an object method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $self = shift()) or $logger->logcroak("I'm only an object method!") 1 0 1
185  
186 1 my $reference_file_fs = Encode::encode( locale_fs => $self -> {reference_file} );
187  
188 1 ▶ if ( -e $reference_file_fs ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-e $reference_file_fs) { } 0 1 1
189 $logger -> logdie( sprintf '% is not a file',
190 $self -> {reference_file}
191 )
192 0 ▶ unless -f _;
Branch: 1 branch
BranchTrueFalseTotal
unless -f _ 0 0 0
193  
194 0 ▶ if ( -s _ ) { # non empty file
Branch: 1 branch
BranchTrueFalseTotal
if (-s _) { } 0 0 0
195 $logger -> logdie( 'reference file exists, but reference file read line transform subroutine reference needed for reading its content was not provided to constructor' )
196 0 ▶ unless exists $self -> {reference_file_read_line_transform_sub};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"reference_file_read_line_transform_sub"} 0 0 0
197  
198 $logger -> logdie( sprintf 'reference file %s is not readable',
199 $self -> {reference_file},
200 )
201 0 ▶ unless -r _;
Branch: 1 branch
BranchTrueFalseTotal
unless -r _ 0 0 0
202  
203 open my $fh, '<', $reference_file_fs
204 or $logger -> logdie( sprintf 'cannot open file %s for reading: %s',
205 $self -> {reference_file},
206 0 ▶ $!,
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, "<", $reference_file_fs or $logger->logdie(sprintf('cannot open file %s for reading: %s', $self->{"reference_file"}, $!)) 0 0 0
207 );
208 0 binmode $fh;
209  
210 0 my $read_result = read $fh, ( my $t ), -s _;
211  
212 $logger -> logdie( sprintf 'reading from %s failed: %s',
213 $self -> {reference_file},
214 0 ▶ $!,
Branch: 1 branch
BranchTrueFalseTotal
unless defined $read_result 0 0 0
215 )
216 unless defined $read_result;
217  
218 $logger -> logdie( sprintf 'errors while reading %s: expected to read %d bytes, but read %d',
219 $self -> {reference_file},
220 0 ▶ -s _,
Branch: 1 branch
BranchTrueFalseTotal
unless $read_result == -s _ 0 0 0
221 $read_result,
222 )
223 unless $read_result == -s _;
224  
225 $self -> {line_joiner} = $line_joiner[ 1 ]
226 unless exists $self -> {line_joiner}
227 0 ▶ || -1 == index $t, $line_joiner[ 1 ];
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"line_joiner"} or index($t, $line_joiner[1]) == -1 0 0 0
Condition0%0/3
exists $self->{"line_joiner"} or index($t, $line_joiner[1]) == -1
l!l&&r!l&&!r
000
MC/DC0%0/2
exists $self->{"line_joiner"} or index($t, $line_joiner[1]) == -1
exists $self->{"line_joiner"} index($t, $line_joiner[1]) == -1
Truth table0%0/3
A or B
A= exists $self->{"line_joiner"}B= index($t, $line_joiner[1]) == -1
ABresult
1X1
011
000
228  
229 0 for my $l ( split /\x0d?\x0a/, $t ) { # Reference files consist of a number of lines (terminated by 0x0a or 0x0d,0x0a) each consisting of the name of the file to transfer to the remote system.
230 0 $logger -> debug( sprintf 'read octet line from reference file: %s',
231 $l,
232 );
233  
234 my %referenced_file = ( octet_line_in_reference_file => $l,
235 0 character_line_in_reference_file => $self -> {reference_file_read_line_transform_sub} -> ( $l ),
236 );
237  
238 0 my $full_name = $referenced_file{character_line_in_reference_file};
239 0 ▶ $referenced_file{prefix} = $1
Branch: 1 branch
BranchTrueFalseTotal
if $full_name =~ s/^($prefix_re)// 0 0 0
240 if $full_name =~ s/^($prefix_re)//; # fts-5005.002
241  
242 0 _file_info( $full_name, \ %referenced_file );
243  
244 0 push @{ $self -> {referenced_files} },
245 \ %referenced_file;
246 }
247 0 close $fh;
248 } else { # file is empty
249 0 $self -> {referenced_files} = [];
250 }
251 } else { # file does not exist
252 1 $self -> {referenced_files} = [];
253 }
254  
255 1 $self;
256 }
257  
258 =head2 write_file
259  
260 Method for writing content from memory to the file. Does not need any parameters.
261 If file exists and its content in memory is empty, it will be deleted.
262  
263 Returns itself for method chaining.
264  
265 =cut
266  
267 1 ▶sub write_file {
Subroutine write_file: called CC=8 SCAR=24.4
Pod documented
268 1 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
269  
270 1 ▶ ref( my $self = shift ) or $logger -> logcroak( "I'm only an object method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $self = shift()) or $logger->logcroak("I'm only an object method!") 1 0 1
271  
272 $self -> read_existing_file
273 1 ▶ unless exists $self -> {referenced_files};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"referenced_files"} 0 1 1
274  
275 1 my $reference_file_fs = Encode::encode( locale_fs => $self -> {reference_file} );
276  
277 1 ▶ if ( @{ $self -> {referenced_files} } ) { # update the file
Branch: 2 branches
BranchTrueFalseTotal
if (@{$self->{'referenced_files'};}) { } 1 0 1
elsif (-e $reference_file_fs) { } 0 0 0
278 # simple overwriting for now. later try File::Temp for new file and then File::Copy::move for moving over existing one
279 my $line_joiner = exists $self -> {line_joiner} ?
280 $self -> {line_joiner}
281 1 ▶ : $line_joiner[ 0 ];
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'line_joiner'} ? : 1 0 1
282  
283 open my $fh, '>', $reference_file_fs
284 or $logger -> logdie( sprintf 'cannot open %s: %s',
285 $self -> {reference_file},
286 1 ▶ $!,
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, ">", $reference_file_fs or $logger->logdie(sprintf('cannot open %s: %s', $self->{"reference_file"}, $!)) 1 0 1
287 );
288  
289 1 binmode $fh;
290  
291 print $fh join $line_joiner,
292 map $_ -> {octet_line_in_reference_file},
293 1 @{ $self -> {referenced_files} };
294  
295 1 close $fh;
296  
297 } elsif ( -e $reference_file_fs ) { # remove the file as it's empty
298 0 $logger -> debug( 'removing empty ', $self -> {reference_file} );
299  
300 unlink $self -> {reference_file}
301 or $logger -> logdie( sprintf 'could not unlink %s: %s',
302 $self -> {reference_file},
303 0 ▶ $!,
Branch: 1 branch
BranchTrueFalseTotal
unlink $self->{"reference_file"} or $logger->logdie(sprintf('could not unlink %s: %s', $self->{"reference_file"}, $!)) 0 0 0
304 );
305 }
306  
307 1 $self;
308 }
309  
310 =head1 CONTENT ACCESS
311  
312 =head2 referenced_files
313  
314 Returns list of hash references describing referenced files in list content.
315 In scalar content returns array reference.
316  
317 Each hash has fields:
318  
319 octet_line_in_reference_file - original line from the file or result returned by third parameter (sub reference) for constructor during push_reference method call. This is the value that will be written by write_file method call
320  
321 character_line_in_reference_file - line that was returned by second parameter (sub reference) for constructor during existing file read or possibly prefixed second argument for push_reference
322  
323 full_name - character line without prefix
324  
325 There might be other fields:
326  
327 prefix - if there is one
328  
329 size - size in bytes if file existed during read_existing_file or push_reference method call
330  
331 mstat - last modify time in seconds since the epoch if file existed during read_existing_file or push_reference method call
332  
333 =cut
334  
335 1 ▶sub referenced_files {
Subroutine referenced_files: called CC=4 SCAR=14.6
Pod documented
336 1 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
337  
338 1 ▶ ref( my $self = shift ) or $logger -> logcroak( "I'm only an object method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $self = shift()) or $logger->logcroak("I'm only an object method!") 1 0 1
339  
340 $self -> read_existing_file
341 1 ▶ unless exists $self -> {referenced_files};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"referenced_files"} 0 1 1
342  
343 wantarray ?
344 1 @{ $self -> {referenced_files} }
345 1 ▶ : $self -> {referenced_files};
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 1 0 1
346 }
347  
348 =head1 CONTENT MODIFICATION
349  
350 =head2 process_lines
351  
352 Method expects one parameter - function reference. That function will be called for each line in reference file with one parameter - hash reference with all details about the referenced file.
353 Function can change/update fields - they are actual values, not a copy.
354  
355 Function return value is very important.
356 If it is false then this line will be removed from the memory and after write_file call from the actual file.
357 If return value is true then line stays.
358  
359 Method returns number of lines removed.
360  
361 =cut
362  
363 0 ▶sub process_lines {
Subroutine process_lines: not called CC=6 SCAR=37.4
Pod documented
364 0 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
365  
366 0 ▶ ref( my $self = shift ) or $logger -> logcroak( "I'm only an object method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $self = shift()) or $logger->logcroak("I'm only an object method!") 0 0 0
367  
368 0 my $sub_ref = shift; # gets line hash ref and should return boolean (keep the line or not)
369  
370 0 ▶ $logger -> logdie( 'not valid condition subroutine reference was passed' )
Branch: 1 branch
BranchTrueFalseTotal
unless defined $sub_ref and ref $sub_ref eq "CODE" 0 0 0
Condition0%0/3
defined $sub_ref and ref $sub_ref eq "CODE"
!ll&&!rl&&r
000
MC/DC0%0/2
defined $sub_ref and ref $sub_ref eq "CODE"
defined $sub_ref ref $sub_ref eq "CODE"
Truth table0%0/3
A and B
A= defined $sub_refB= ref $sub_ref eq "CODE"
ABresult
0X0
100
111
371 unless defined $sub_ref
372 && ref $sub_ref eq 'CODE';
373  
374 $self -> read_existing_file
375 0 ▶ unless exists $self -> {referenced_files};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"referenced_files"} 0 0 0
376  
377 my @idx_to_remove = grep ! $sub_ref -> ( $self -> {referenced_files}[ $_ ] ),
378 0 0 .. $#{ $self -> {referenced_files} };
379  
380 0 for ( reverse @idx_to_remove ) {
381 $logger -> info( sprintf 'remove %s from %s',
382 $self -> {referenced_files}[ $_ ]{full_name},
383 $self -> {reference_file},
384 0 );
385 0 splice @{ $self -> {referenced_files} }, $_, 1;
386 }
387  
388 0 scalar @idx_to_remove;
389 }
390  
391 =head2 push_reference
392  
393 Expects referenced filename as a character string. If prefix [-#^~!@] needed, it should be defined as first parameter and filename as second parameter.
394  
395 Returns itself for method chaining.
396  
397 =cut
398  
399 1 ▶sub push_reference {
Subroutine push_reference: called CC=8 SCAR=22.6
Pod documented
400 1 my $logger = Log::Log4perl -> get_logger( __PACKAGE__ );
401  
402 1 ▶ ref( my $self = shift ) or $logger -> logcroak( "I'm only an object method!" );
Branch: 1 branch
BranchTrueFalseTotal
ref(my $self = shift()) or $logger->logcroak("I'm only an object method!") 1 0 1
403  
404 $logger -> logdie( 'reference file write line transform subroutine reference needed for update was not passed to constructor' )
405 1 ▶ unless exists $self -> {reference_file_write_line_transform_sub};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"reference_file_write_line_transform_sub"} 0 1 1
406  
407 $self -> read_existing_file
408 1 ▶ unless exists $self -> {referenced_files};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"referenced_files"} 0 1 1
409  
410 1 ▶ my ( $prefix, $filename ) = ( @_ == 1 ? undef : (),
Branch: 1 branch
BranchTrueFalseTotal
@_ == 1 ? : 0 1 1
411 @_,
412 );
413  
414 1 ▶ $logger -> logdie( 'Incorrect prefix: ' . $prefix )
Branch: 1 branch
BranchTrueFalseTotal
if defined $prefix and not $prefix =~ /$prefix_re/ 0 1 1
Condition33%1/3
defined $prefix and not $prefix =~ /$prefix_re/
!ll&&!rl&&r
010
MC/DC0%0/2
defined $prefix and not $prefix =~ /$prefix_re/
defined $prefix not $prefix =~ /$prefix_re/
Truth table33%1/3
A and not(B)
A= defined $prefixB= not $prefix =~ /$prefix_re/
ABresult
0X0
100
111
415 if defined $prefix
416 && $prefix !~ m/$prefix_re/;
417  
418 1 my %new;
419  
420 1 _file_info( $filename, \ %new );
421  
422 1 ▶ if ( defined $prefix ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $prefix) { } 1 0 1
423 1 $new{prefix} = $prefix;
424 1 $new{character_line_in_reference_file} = $prefix . $filename;
425 } else {
426 0 $new{character_line_in_reference_file} = $filename;
427 }
428 1 $new{octet_line_in_reference_file} = $self -> {reference_file_write_line_transform_sub} -> ( $new{character_line_in_reference_file} );
429  
430 1 push @{ $self -> {referenced_files} },
431 \ %new;
432  
433 1 $self;
434 }
435  
436 2 1;
↑ Summary