Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: sourcing

by snafu (Chaplain)
on Apr 02, 2002 at 10:20 UTC ( [id://156022]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: sourcing
in thread sourcing

We just ran into a snag with this though. It doesn't work right (or at least we haven't been able to make it work right) with the use of strict. Any ideas on that?

Update
The way we fixed it was by explicitly making the sourced file a package:

{ package PACKAGE_NAME;do "sourced_file.pl" };

and then we had to explicitly call each symbol by its package name in order to reference the data "inside" the symbol.

print $PACKAGE_NAME::variable,"\n";

Any other way we tried wouldn't work right *shrug*.

_ _ _ _ _ _ _ _ _ _
- Jim
Insert clever comment here...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://156022]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.