On Oct 30, 6:50 pm, [EMAIL PROTECTED] (Howa) wrote: > On 10 30 , 9 38 , [EMAIL PROTECTED] (Ron Bergin) wrote: > > > On Oct 30, 3:34 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > > > In addition to changing 'my' to our' in Config.pl, you'll also need to > > add the 'our $value;' to Script.pl > > yes you are right, I need to include `our` twice to make the code work > if using strict. > > however, this seems to be a little dummy to declare the same variable > twice, any better method(s)? > > thanks,
First, you need to ask yourself 1) why you want to use an external config file, and 2) is using an external config file the best approach? If an external config file is what you need, then you should look into using one of the CPAN module's suited for this purpose. http://search.cpan.org/search?query=config&mode=all http://search.cpan.org/search?query=ini&mode=all -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/