I load the config file in the main program using do, 
<main.pl>
#!perl
do "conf";
use strict;
print "value of v is $v\n";
------------------------------------
and the config file has only one line,
<conf>
$v = 'hello';

when I run the main.pl, it reports following error, how to fix this? 

Global symbol "$v" requires explicit package name at main.pl line 4.
Execution of main.pl aborted due to compilation errors.

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


Reply via email to