package Blah; use AppConfig; my $config = AppConfig->new(); sub import { my (%args) = @_; if ( $args{'Config'} ) { $config->file($args{'Config'}); } #### next few lines for testing only use Data::Dumper; print Dumper(\%args); } use Othermodule ( Config => $config );