Help for this page

Select Code to Download


  1. or download this
    sub ReadFile {
      my ($filename) = @_;
    ...
      $content =~ s/^(?!--|\n).*\n//mg; # => see japhy's answer
      return ($content);
    } # ReadFile
    
  2. or download this
    sub ReadFile {
      my ($filename) = @_;
    ...
      close (FILE);
      return ($content);
    } # ReadFile