Help for this page

Select Code to Download


  1. or download this
    # home.conf
    
    ...
    }
    
    1;
    
  2. or download this
    require 'home.conf';  # I'm not crazy about this name
    # ...
    my %config  = MyPackage::get_config();  # copy of original hash
    my $frobozz = foobar( $config{ WIKI_TITLE } );
    
  3. or download this
    package MyPackage;
    
    ...
    }
    
    1;
    
  4. or download this
    require 'home.conf';
    # ...
    my $frobozz = foobar( MyPackage::config( 'WIKI_TITLE' ) );
    
  5. or download this
    require 'home.conf';
    # ...
    *config = \&MyPackage::config;  # make an alias
    my $frobozz = foobar( config( 'WIKI_TITLE' ) );