good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
$dbh, $timestamp and $server don't sound like variables that should be used from outside the package, so use vars isn't appropriate. They don't sound like they need to be package variables, so our isn't appropriate. my should be used here. (Actually, it would probably make a lot more sense for those to be attributes of any object.)
Variables aren't shared between processes. Each child gets a byte-for-byte copy.
It doesn't make sense for two processes to use the same database connection. Open a connection in each child. In reply to Re: to "use vars" or not to
by ikegami
|
|