开发者

Use constants with Perl threads

开发者 https://www.devze.com 2023-03-15 16:30 出处:网络
threads::shared doesn\'t allow to share constants between threads. Is there any 开发者_开发技巧other way to do that?From perldoc:\"When a constant is used in an expression, Perl replaces it with its v

threads::shared doesn't allow to share constants between threads.

Is there any 开发者_开发技巧other way to do that?


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消