If I give the full variable module/name, it will work,
You haven't used threads::shared in the current scope (package), so how could it have exported its functions into that scope?
I try to use the Perl debugger, I have to use a reference to the variable.
You always have to pass a reference to threads::shared::share(); unless you disable the prototype.
In reply to Re: Problem conditionally making variables shared if using threads
by BrowserUk
in thread Problem conditionally making variables shared if using threads
by billgdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |