Threading: Removing an element from a shared arrayby P0w3rK!d (Pilgrim)
|on May 15, 2003 at 20:45 UTC||Need Help??|
P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
I have a process with several threads of which each
needs to eliminate an element from a shared array
when it is done with it. It is referencing the
elements by index only. The thread number is the
same as the index. I have the threading working,
my class and its methods are working, but the array manipulation is not.
How do you remove an element from a shared array?
In Foo::run() I cannot get the splice to work. The output/error is as follows:
Added line per author - dvergin 2003-05-15