- or download this
# home.conf
...
}
1;
- 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 } );
- or download this
package MyPackage;
...
}
1;
- or download this
require 'home.conf';
# ...
my $frobozz = foobar( MyPackage::config( 'WIKI_TITLE' ) );
- or download this
require 'home.conf';
# ...
*config = \&MyPackage::config; # make an alias
my $frobozz = foobar( config( 'WIKI_TITLE' ) );