I tried to add 'my' before $v, but I got same error as before. On 7/5/05, Chris Devers <[EMAIL PROTECTED]> wrote: > On Mon, 4 Jul 2005, Ken Killer wrote: > > > 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'; > > Have you tried making that > > my $v = 'hello'; > > ? > > When you `use strict`, you need to declare your variables. > > > > -- > Chris Devers >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>