[User] lookup_uri = something #### package App; our %config = (); &init; sub init { # loads your configuration file/parameters here and # assigns to %App::config } package User; sub new { my $self = {}; bless $self; $self->{lookup_uri} = $App::config{lookup_uri}; }