beast wrote:
I just want to load variable from config file:

config.pl:

$basedir = '/home/user/';

myprog.pl:

#use strict;

do 'config.pl' or die "can not open config\n";

# do some stuff here

the problem is, i have to disable strict in myprog.pl. any other way to do it?

Declare the variable in myprog.pl.

    our $basedir;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to