Help for this page

Select Code to Download


  1. or download this
    use File::Slurp;
    
    my $text = read_file( 'filename' );
    
  2. or download this
    my $text = do {
      local $/;
    ...
         or die "Error opening filename for read - $!";
      <$fh>
    };