Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Script hangs after editing package file?

by fireartist (Chaplain)
on Sep 14, 2005 at 08:31 UTC ( [id://491789]=note: print w/replies, xml ) Need Help??


in reply to Script hangs after editing package file?

While merlyn is correct, the tricky bit is "the .pm file once processed is not consulted again".

Remember that use is compile-time and require is runtime.

If the file is use'd, then everything will be okay. If the file is require'd, then it won't be read from disk until your code gets to that point. Also, if there is a use or require within a string eval, the file won't be read from disk until that point in the runtime.

But yes, after a file has been read from disk once, it won't be read again during the life of the script.

However is the script using fork? I've no idea whether forked processes work the same.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-18 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found