in reply to DBI, $dbh, and subroutines
Passing it around is a good habit because it will serve you well when re-using your code in places where global variables are a bad idea, such as mod_perl and in modules.
Still, there's no rule without exceptions. I don't think anyone actually follows all of their own rules when doing quick-and-dirty hacks. That's what make them dirty, right?
--
Time flies when you don't know what you're doing
|
---|
In Section
Seekers of Perl Wisdom