in reply to Re^9: multi threading DBI
in thread multi threading DBI

Got it, thanks! You're the man! Now I just have the problem with this script not stopping... all the threads seem to have completed operation but the perl script just wont stop by itself... any clue?

Replies are listed 'Best First'.
Re^11: multi threading DBI
by BrowserUk (Patriarch) on Oct 31, 2013 at 09:05 UTC

    Yes. Add the second line below, below the first line in the code:

    $Qunames->enqueue( @unames ); $Qunames->enqueue( (undef) x $THREADS );

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.