Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: to "use vars" or not to

by westy032001 (Novice)
on Nov 08, 2010 at 19:14 UTC ( [id://870170] : note . print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^5: to "use vars" or not to
by ikegami (Patriarch) on Nov 08, 2010 at 20:34 UTC
    Right. If the dbh was created before forking, that would be another story.