package MyConfig; # # For the record: fixed the following 4 lines since my fingertips decided to do something # other than what my brain was telling them to. s/my/our/ our $datahost="blah.foo.com"; our $datauser="user"; our $password="s3cr3t"; our $database="thedata"; 1; #### |random handwaving here... use MyConfig; my $host=$MyConfig::datahost; my $user=$MyConfig::datauser; my $pass=$MyConfig::password; my $database=$MyConfig::database; | now do something with it...