> > 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.
That's what I was hoping for! Thanks!
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]