[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Invalid value for share scalar?



Christopher Fowler wrote:
> On Mon, 2006-10-02 at 13:12 -0400, Watson, Keith R. wrote:
>   
>> Chris,
>>
>> I'm unfamiliar with the syntax of line 39. What is it supposed to do?
>>     
>
> It makes the array shared across threads.  I'm using threads and the
> error message I'm getting is specific to threads.
>
> If a value is not shared then it will get a copy of the data just like
> with a fork().
>
>   
>> keith
>>     
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
>
>   
Anything that goes into that shared object also has to be declared shared. 

push(@objs,"hi");   is OK
push(@objs,$xyz); isn't unless $xyz is declared shared also.    I'm not 
sure why it flags it there however unless catch is being called with @obj.

Jim.