Is it possible to load modules at run time, require '/file_path/file_name.pm'; , and share the memory between threads?
Basically, I have a pool of threads, if thread#1 decides to load a module, I want the module available to all the threads!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“No, it’s not possible.
Either the module must be loaded before the thread is created, or each
thread must individually load the module.”
Thanks to Dave Mitchell 1