use Myconfig qw(%config); print $config{this}, "\n"; # etc. ## And in your 'Myconfig' package: package Myconfig; use strict; use warnings; require Exporter; use vars qw(%config @ISA @EXPORT_OK); @ISA = qw(Exporter); @EXPORT_OK = qw(%config); $config{this} = "that"; $config{here} = "there"; #etc. 1;