For more see perldoc threads::shared.... use threads; use threads::shared; ... my $href : shared; $href = &share({}); ... # Lock block { lock $href; $href->{mykey} = 'myval'; } ...
- BR
In reply to Re^4: Locking hash values
by caelifer
in thread Locking hash values
by bucky0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |