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


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.