-----Original Message----- From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Jasbinder Singh Bali Sent: Friday, March 16, 2007 9:55 AM To: Martijn van Oosterhout; Tom Lane; pgsql-general@postgresql.org Subject: Re: [GENERAL] exception handling in plperlu
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>
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.