开发者

Use constants with Perl threads

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜