Re: exception handling in plperlu

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Jasbinder Singh Bali <jsbali(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: exception handling in plperlu
Date: 2007-03-16 15:08:56
Message-ID: 20070316150856.GB29255@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Douglas McNaught 2007-03-16 15:17:33 Re: exception handling in plperlu
Previous Message Adam Rich 2007-03-16 15:06:28 Re: exception handling in plperlu