Perl: the Markov chain saw | |
PerlMonks |
MCE and DBI - [SOLVED]by pmamatsis (Initiate) |
on May 26, 2015 at 12:51 UTC ( [id://1127823]=perlquestion: print w/replies, xml ) | Need Help?? |
pmamatsis has asked for the wisdom of the Perl Monks concerning the following question:
Hello everybody,
i would like to seek some advice for the MCE parallel library. I have an assignment at the office that i need to use it along with one database connection per worker process. What i am doing is...i am creating a database connection into the "main" body of my perl script in order to construct an array and then i am passing this array into the 'worker' sub. The problem rises when into the 'worker' sub i am trying to connect to the database again in order to execute a stored procedure based on the arguments provided by the main process...i am getting a series of errors about re-defining some functions from the DBI. One of the errors is the following:
What am i missing about the use of the MCE library ? Any kind of advice of what i am doing wrong ? Best regards and thank you in advance, Panos.
Back to
Seekers of Perl Wisdom
|
|