It should work fine. I wrote the same thing today (albeit without method calls)...
# Trans handler
sub lookup_handler {
my $r=shift;
my $dbh=GTS::Util::connectdb(); # essentially a wrapper for DBI->connect
...
$r->pnotes(dbh=>$dbh);
return Apache2::Const::DECLINED;
}
# Response handler
sub fullresponse_handler {
my $r=shift;
# Get direction from DB
my $dbh=$r->pnotes('dbh');
...
}
Issac
John Russell wrote:
> Thank you. Tried it, unfortunately no difference.
> I'll try Geoffrey Young's test.
>
