Help for this page

Select Code to Download


  1. or download this
    package MyConfigReader;
    
    ...
      close FILE;
      return;
    }
    
  2. or download this
    use MyConfigReader;
    
    $/ = "not gonna happen";
    MyConfigReader::readConfig("whatever.dat");
    
  3. or download this
    sub readConfig {
      my ($file,$var) = @_;
    ...
      $/ = "\n";
      # rest of function
    }