Help for this page

Select Code to Download


  1. or download this
    package MyConfig;
    ...
    ...
        our %HostConfig;
        return $HostConfig{$key} //= _getConfigForHost( $Host, $key );
    }
    
  2. or download this
    sub getConfig {
        my( $key, $host ) = @_;
    ...
        our %HostConfig;
        return $HostConfig{$key,$host} //= _getConfigForHost( $host, $key 
    +);
    }
    
  3. or download this
    $MyConfig::Host = $test_host;
    
  4. or download this
    for my $host ( ... ) {
        $MyConfig::Host = $host;
        %MyConfig::HostConfig = ();
        ...
    }