Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: scope with multiple files

by ariels (Curate)
on May 22, 2002 at 15:07 UTC ( #168457=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: scope with multiple files
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://168457]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-07-30 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls