in reply to Re^5: weird issue with HTML::TokeParser and Fork in thread [Click the star to watch this topic] weird issue with HTML::TokeParser and Fork
the fork at the end of the loop is a typo, I took it off.
If I understand your recommendation correctly you would package the sub scripts.
I don't get how that will affect the destruction of $data and $results, and if $data and $result are being destructed in the child processes is a problem, does that mean that I can set the $sqlstatement from the child processes and execute it in the parent process (which would save on a connection to the DB)?
Thanks
|