Re: exception handling in plperlu

Поиск
Список
Период
Сортировка
Искать
От
Martijn van Oosterhout
Тема
Re: exception handling in plperlu
Дата
Msg-id
20070316150856.GB29255@svana.org
Ответ на
Re: exception handling in plperlu (Jasbinder Singh Bali)
Список
Дерево обсуждения
exception handling in plperlu "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: exception handling in plperlu Tom Lane <tgl@sss.pgh.pa.us>
Re: exception handling in plperlu "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: exception handling in plperlu Martijn van Oosterhout <kleptog@svana.org>
Re: exception handling in plperlu "Jasbinder Singh Bali" <jsbali@gmail.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 merlyn@stonehenge.com (Randal L. Schwartz)
Re: exception handling in plperlu "A.M." <agentm@themactionfaction.com>
Re: exception handling in plperlu "hubert depesz lubaczewski" <depesz@gmail.com>
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  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      http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
В списке pgsql-general по дате отправления
От: Adam Rich
Дата:
От: Douglas McNaught
Дата:
FAQ