Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I've ensured that whenever I fetch a dbh object, I fetch it from a hash keyed by pid. Or, use the pid in a closure and generate a new one if I am not currently the same pid. e.g.

        my ($pid, $dbh);
        sub get_dbh {
          if ($$ != $pid) {
            $dbh = DBI->connect(...);
          return $dbh;
    (that's off the top of my head, so probably won't work verbatim)