Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by westy032001 (Novice)
on Nov 08, 2010 at 19:14 UTC ( #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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://870170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-07-01 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (99 votes). Check out past polls.

    Notices?