>>>>> ""Mumia" == "Mumia W " <mumia.w.18.spam> writes:
"Mumia> $dsn and $dbh are lexical variables that are restricted to dbcon.pl. You might "Mumia> want to consider using package variables. e.g: Or, just figure out how to break apart your program properly. Export behavior, not data. Create a package that provides subroutines that handle all database operations, and export the subroutines to do that. Don't export data. Export behavior. Otherwise, you're just creating more globals, and more globals are bad, mmm'kay? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/