- or download this
my %all_files;
...
$all_files{$file} = \@data;
close($fh);
}
- or download this
foreach my $file (@files) {
open(my $fh, "<", $file;
my @data = <$fh>;
close($fh);
}
- or download this
{
my @file;
...
undef @data; # Frees @data's content.
}
}