#!/usr/bin/perl use strict; use warnings; use Data::Dumper; our $config; do '/tmp/config.pl'; print Dumper(\$config),"\n"; #### $config = [ option1 => 'one', option2 => 'two', option3 => 'three' ];