Help for this page

Select Code to Download


  1. or download this
    sub first_line_from_file {
      my $fn = shift;
    ...
        or die "unable to open file $fn";
      <$file>
    }
    
  2. or download this
      scalar <$file>;