[Pdx-pm] sharing threads
chromatic
chromatic at wgz.org
Tue Mar 11 19:21:47 CST 2003
On Tuesday 11 March 2003 17:12, Fabio45K at netscape.net wrote:
> have any of you guys ever used threading? if so, do you know how to go
> about sharing a scalar variable among the threads?
Provided you have a Perl 5.8 compiled with ithreads, see threads::shared:
use threads;
use threads::shared;
my $var : shared;
(shamelessly stolen from the synopsis of that module)
-- c
More information about the Pdx-pm-list
mailing list