Re: exception handling in plperlu - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: exception handling in plperlu
Date
Msg-id 20070316150856.GB29255@svana.org
Whole thread Raw
In response to Re: exception handling in plperlu  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
List pgsql-general
On Fri, Mar 16, 2007 at 10:54:49AM -0400, Jasbinder Singh Bali wrote:
> just wondeng why doesn't it let me put
> my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120;
> port=5432;", "", "");
> in eval
>
> says
> Global symbol "$dbh" requires explicit package name at line <where ever dbh
> is used>

Well, eval starts a new scope so the $dbh is only defined within that
block. From the errors I assume you tried the other statements outside
that scope?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "Adam Rich"
Date:
Subject: Re: exception handling in plperlu
Next
From: Douglas McNaught
Date:
Subject: Re: exception handling in plperlu