Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
    use File::Slurp qw( read_file );
    my $projectA = read_file('projecta.txt');
    my $projectB = read_file('projectb.txt');
    
  3. or download this
    sub read_file {
       my $filename = shift;
    ...
    
       return <$fh>; # enjoy auto-close of $fh :)
    }