in reply to Include external variables into script

You need explicit declare variables $var1 and $var2.
use warnings; use strict; our ( $var1, $var2 ) = ( 0, 0 ); printf "var1: %s\tvar2:%s\n", $var1, $var2; require "conf"; printf "var1: %s\tvar2:%s\n", $var1, $var2;
conf
$var1='x'; $var2='y';
But usage of Config modules is best and more explicit to do config.

I like from Config::Simple...
But many others config modules are available from CPAN.

See Writeup Formatting Tips... you don't need to put <br> into <code> sections.

--
Marco Antonio
Rio-PM