http://www.perlmonks.org?node_id=168457


in reply to scope with multiple files

Are you sure $conf isn't being set to undef by the do? Read in the manual the paragraphs beginning "If <samp>do</samp> cannot read the file...", to see how to diagnose the precise error occurring.

Replies are listed 'Best First'.
Re: Re: scope with multiple files
by fireartist (Chaplain) on May 22, 2002 at 15:35 UTC
    ariels you star!

    I changed the line
    my $conf = do ('G4 HD:Desktop Folder:perl:test:config.pl');
    to
    my $conf = do ('G4 HD:Desktop Folder:perl:test:conf.pl');
    And it worked as expected.

    Thank you.