> > : To connect to the mysql driver the package name is > actually DBI::db not DBI. > > : > > : My question is: is it always going to be DBI::db > regardless of the driver? > > : I need ot know for some stuff I'm making that uses the > name space of $dbh object. > > > > Yep. > > > > Casey West > > Good answer Casey! But messing with a package's name space is > not to be recommended unless you absolutely /have/ to. Won't > subclassing do what you want Dan?
I'm not sure... What I'm trying to do is two phase: 1) make a function like so: Test.pl use DBI; $dbh->myfunc(...); sub DBI::db::myfunc { my $dbh = shift; $dbh->do(... } That works great. 2) Next I want to move sub DBI::db::myfunc {} from Test.pl into a module so I can do: use DBI; use MYSuperModule; # exporting DBI::db::myfunc {} $dbh->myfunc(...); So what I need to know I guess is: 1) in MYSuperModule.pm do I a) use DBI; b) sub DBI::db::myfunc {} or sub ???::Myfunc {} 2) What is the best way to do that without causing namespace problems? So answer a question with a question! Thanks Dan > > Cheers, > > Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]