my $sth = TArtLib::dbi->prepare("select * from table") or die DBI::errstr; my $sth2 = TArtLib->dbi()->prepare("select * from table") or die DBI::errstr;