Hi @marioroy,
thank you so much for your quick reply. I am sorry for not posting any code online but i didn't want for people to think that i just need somebody else to resolve my problem. :)
The full source code for my little program is as following:
#!/usr/bin/perl -w
use strict;<br>
use MCE;
use DBD::Oracle;
use DBI;
sub mySub {
my $db;
$db=DBI->connect("dbi:Oracle:<SERVER_NAME>", "<USERID>", "<PASSWOR
+D>") || die($DBI::errstr . "\n");
$db->disconnect;
return;
}
my (@array, $mceObj, $db);
$db=DBI->connect("dbi:Oracle:<SERVER_NAME>", "<USERID>", "<PASSWORD>")
+ || die($DBI::errstr . "\n");<br>
...do some work with the database in order to fill up the @array varia
+ble...
$db->disconnect;<br>
$mceObj = MCE->new(max_workers => 4,
input_data => \@array,
user_func => \&mySub);
$mceObj->run;
Best regards,
and thank you in advance
Panagiotis Mamatsis.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.