I have a seperate config file in which I define all of my variables. (because I'm making a program using several scripts with many common vars)
I was under the impression that by initiating the variable (even in a seperate file) 'use strict' would be happy. However, when I run the script, I get lots of warnings about undeclared variables. Do I have to declare the variables before using them, even though they are already defined, or is there something else I should know? (code below) Thanks, Carl ### script.cgi file #!/usr/bin/perl -wT # require "config"; use strict; use DBI; $q = new DBI; if ( $var1 == "$q->param('user')" ){ &whatever } etc... ### config file $var1 = 'value1'; $var2 = 'value2'; 1; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]