Re: making do work with strict

2008-06-18 Thread Dr.Ruud
beast schreef: > 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? Than

Re: making do work with strict

2008-06-17 Thread Gunnar Hjalmarsson
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

making do work with strict

2008-06-17 Thread beast
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? Thanks. --budhi -- To unsubscrib