threads::shared doesn’t allow to share constants between threads.
Is there any other way to do that?
threads::shared doesn’t allow to share constants between threads. Is there any other way to
Share
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.
From perldoc:
“When a constant is used in an expression, Perl replaces it with its value at compile time(…)” so there is no need to share it at run time!