On Aug 6, Dan Muey said: > use DBI; > use MyFunkyModule qw(databasestuff); > my $dbh = DBI->connect..... > > print databasestuff($dbh,$query); > >MyFunkyModule.pm: > > sub databasestuff { > my $dbh = shift; > my $query = shift; > return $dbh->do($query); > } > >Would I still have to have use DBI; in the package MyFunkyModule; in >MyFunkyModule.pm?
No, for two reasons. First, DBI isn't exporting anything (that I'm aware of). Second, the DBI object is doing all the work with the module, which has already been included. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]