Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 96392 invoked from network); 3 Apr 2006 19:25:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 19:25:59 -0000 Received: (qmail 32933 invoked by uid 500); 3 Apr 2006 19:25:53 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 32910 invoked by uid 500); 3 Apr 2006 19:25:53 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 32899 invoked by uid 99); 3 Apr 2006 19:25:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 12:25:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.77.29.165] (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 12:25:52 -0700 Received: from [192.168.2.160] (c-69-141-1-101.hsd1.pa.comcast.net [69.141.1.101]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id k33JPOs11681; Mon, 3 Apr 2006 14:25:24 -0500 Message-ID: <443176A0.5020305@modperlcookbook.org> Date: Mon, 03 Apr 2006 15:25:20 -0400 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Russell CC: modperl@perl.apache.org Subject: Re: pnotes MP1->MP2 References: <9187EF04-8CC9-4CEE-8EAB-70B8EB4D5C68@onlywebdata.com> In-Reply-To: <9187EF04-8CC9-4CEE-8EAB-70B8EB4D5C68@onlywebdata.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N John Russell wrote: > In MP1 it was possible to do.. > > Authorization Phase > > sub handler { > > my $dbh; > > $dbh = DBI->connect(..) > || return "Error connecting.\n $DBI::errstr\n"; > > $r->pnotes(DBH => $dbh); > > > Response Phase > > sub handler($$) { > > my $dbh = $r->pnotes('DBH'); > > However this doesn't work in MP2 because $dbh is a hash as indicated by others here, the problem rests elsewhere in your code and not with pnotes() proper. nevertheless, I've added some tests to our pnotes tests to verify that $dbh does indeed currently work and doesn't ever loose its blessed magic during our storage process. http://svn.apache.org/viewcvs?rev=391122&view=rev --Geoff