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

From Jasbinder Singh Bali
Subject Re: exception handling in plperlu
Date
Msg-id a47902760703160754i59f3016at6f6288f3c09ea924@mail.gmail.com
Whole thread Raw
In response to Re: exception handling in plperlu  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: exception handling in plperlu  ("A.M." <agentm@themactionfaction.com>)
Re: exception handling in plperlu  ("Adam Rich" <adam.r@sbcglobal.net>)
Re: exception handling in plperlu  (Martijn van Oosterhout <kleptog@svana.org>)
Re: exception handling in plperlu  (Douglas McNaught <doug@mcnaught.org>)
Re: exception handling in plperlu  ("hubert depesz lubaczewski" <depesz@gmail.com>)
List pgsql-general
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>

Jas

On 3/16/07, Martijn van Oosterhout < kleptog@svana.org> wrote:
On Thu, Mar 15, 2007 at 10:06:06PM -0400, Jasbinder Singh Bali wrote:
> How about using a try catch block?
> isn't that more efficient that eval?

Umm, eval is perl's equivalent of try/catch. There is no other way.

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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF+oqkIB7bNG8LQkwRApyEAJ413cmp0bIuasEceWhXgTgSE6NOFACeNijH
ZHknBQrtHqg30xL8Wh219Ik=
=Xhhm
-----END PGP SIGNATURE-----


pgsql-general by date:

Previous
From: "Brandon Aiken"
Date:
Subject: Re: PgSql on Vista?
Next
From: "Robin Ericsson"
Date:
Subject: Re: simple coordinate system