in reply to Re: Re: Re: Use thread with good care, but definitely keep using it
in thread Use thread with good care, but definitely keep using it
use Something; use threads; use threads::shared; use strict; use warnings; #my %hash : shared; #my %hash; $hash{VALUE} = &share(new Something(1)); print $hash{VALUE}; package Something; sub new { shift; my $self = {}; $self->{VALUE} = shift; bless($self); return $self; } 1; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Use thread with good care, but definitely keep using it
by Ctrl-z (Friar) on Mar 14, 2003 at 19:37 UTC |