my %required; if ($ENV{HTTP_HOST} eq 'www.shrum.net') { # We now know which # platform we're on... $required{path} = 'g:/websites/shrum.net/'; $required{someotherkey} = 'some other string'; } else { $required{path} = 'd:/users/http/html/'; $required{someotherkey} = 'some different string'; }