Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Script hangs after editing package file?

by fireartist (Chaplain)
on Sep 14, 2005 at 08:31 UTC ( #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
Node Status?
node history
Node Type: note [id://491789]
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 2021-01-25 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?