OK , I checked out @lines. It appears that the code is "working as written".
The "storeplaceholder" gets overwritten by the value of $item but then that $line is assigned to the next thread. The regular expression obviously fails since there is no "storeplaceholder" to replace.
Is there a better way to do this?
I have tried share(@lines) and lock() with no luck....but I dont think that is the issue here...