in reply to Include external variables into script

Ok, your problems are as follows:
  1. Get the "conf" file loaded into memory.
  2. Get the variables that came from the "conf" file into the relevant bits of your program.
  3. Don't upset "use strict."
For loading into memory, you can use "require" or "do." These will basically eval the program. But they don't automagically put the variables into the scope that you require.

To get the variables into the parts of your program in which they are needed, your best bet will be to make them package globals to a "config" package. How about changing your config file to read:

package Blackpitch::Conf; our $var1 = "x"; our $var1 = "y";
Then, where you need to refer to them, just refer to Blackpitch::Conf? Another strategy is to wrap them up in a hashref:
package Blackpitch; our $Conf = { var1 => 'x', var2 => 'y', };
That will let you get local access to it in various modules and files with a simple
my %Conf = %$Blackpitch::Conf;
As far as making use strict happy, you'll want to make sure you "use vars qw($...)" or declare your variables with "our" -- the other option is always to fully qualify them:
$Blackpitch::Conf::var1 = 'x'; $Blackpitch::Conf::var2 = 'y';
...but that is tedious and error-prone.