# configs_topic.pl package Configs; %some_hash = ( key1 => "value1", key2 => { key3 => 'value2', } ); # my tool require "configs_topic.pl"; my $value = $Configs::some_hash{key1};