Help for this page

Select Code to Download


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