Help for this page

Select Code to Download


  1. or download this
    sub read_the_config() {
     open(CFG, "<$file") || log_error("Problem reading $file - $!");
    ...
      }
      close CFG;
    }
    
  2. or download this
    sub read_the_config() {
      local $localfile = $file;
    ...
      }
      close CFG;
    }
    
  3. or download this
    sub read_the_config($$$$) {
      my ($file, $def, $cfgref, $order) = @_;
    ...
      close CFG;
    foreach (@lines) {  do all sorts of groovy stuff....}
    }
    
  4. or download this
     
       ...
       local *CFG;
    ...
       while (<CFG>) {
       ...
       return \@lines;