in reply to Re^2: to "use vars" or not to
in thread to "use vars" or not to

You seem to be unclear about what fork does, in Perl and on many operating systems. See Fork (operating system) for a more general introduction. If you are on Windows, it's best to avoid fork overall, especially when trying to use DBI.

Replies are listed 'Best First'.
Re^4: to "use vars" or not to
by westy032001 (Novice) on Nov 08, 2010 at 19:14 UTC
    Thanks again for the reply and link.

    So to summarize, creating a global (via use vars) $dbh database handle in a module called from a forked child cannot impact another forked child because the child is a copy of the parent prior to the creation of the $dbh. ?

    hopefully thats right ? cheers.
      Right. If the dbh was created before forking, that would be another story.