Eduardo wrote:
Hi. I am working in a project of perl in which I use a child thread to
continue accepting client connections while the main thread is blocked.
My problem is that I need to share a hash which has two levels of depth
and I have read in perldoc that ithreads don�t allow to share references
which have more than two leves of depth. Is there any posibility to do
this or is it impossible?. If it is possible, please, explain me how to
declare it. I know declare for one level of depth:
$hash = &share({});
Nothing more. Thank you very much.
I'm not sure whether this will work, but if you do:
my @foo : shared = (1..3);
my @bar : shared;
push @{ $bar[0] }, \@foo;
won't it make bar[0][0] shared as well?
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com