|
|
| There's more than one way to do things | |
| PerlMonks |
Re^4: Passing Variablesby pg (Canon) |
| on Oct 23, 2004 at 18:27 UTC ( [id://401903]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
"or is there a better way to make the Module Assume that everything called in the main script is useable?" Unfortunately that is not the better way, many monks here can give a long lecture as why, but let me just make it simple: why should the person call your module know that, inside your module, you expect the connection being named $dbh, not $connection, or $blah?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||