perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: pnotes MP1->MP2
Date Tue, 04 Apr 2006 06:49:57 GMT
On Tuesday 04 April 2006 01:37, John Russell wrote:
> sub authenticate {
>
>    my $r    = shift;
>
>    my $dbh;
>
>    $dbh = DBI->connect("dbi:Oracle:XE", "WEB_LOGIN", "nnnn",
>                {RaiseError => 0, AutoCommit => 1, PrintError => 0})
>            || return "Error connecting.\n$DBI::errstr\n";
>    }
>
>    $r->pnotes(DBH => $dbh);
> }

does it make a difference if 

  $r->pnotes(DBH => $dbh);

is changed into

  $r->pnotes->{DBH} = $dbh;

?

Torsten

Mime
View raw message