Reputation: 1558
threads::shared doesn't allow to share constants between threads. Is there any other way to do that?
threads::shared
Upvotes: 3
Views: 192
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!