# This is script.pl use strict; my %config = do 'config.pl'; chdir $config{path}; ...