perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Issac Goldstand <mar...@beamartyr.net>
Subject Re: pnotes MP1->MP2
Date Mon, 03 Apr 2006 22:01:40 GMT
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.
> 

Mime
View raw message