use User; my $config = AppConfig->new; $config->define( remote_uri => { DEFAULT => '', ARGCOUNT => ARGCOUNT_ONE } ); # config file sets remote_uri; $config->file('/path/to/conf'); ### I'm trying to avoid having to do this. use Lookup::Remote; Lookup::Remote->remote_uri($config->remote_uri); ####### # Set user data from cache or remote as available. my $user = User->new(id => '1234')->init(); # Do stuff with $user..