my $VAR1; #you must declare VAR1 from file if you use strict open CONF,"myconfig.conf"; my $conf = eval (join "",); close CONF;