Re: eval()

From: toylet (toylet_at_mail.hongkong.com)
Date: 04/02/04


Date: Fri, 02 Apr 2004 21:54:25 +0800

toylet wrote:

> eval ( $dbh->do("DROP TABLE foo") );
> print "dropped table foo\n" if $@;
>
> The program execution stopped at eval(). ISn't it supposed to ignore errors?
>
here are the errors:

DBD::mysqlPP::db do failed: Unknown table 'foo' at ./mysql.pl line 15.
DBD::mysqlPP::db do failed: Unknown table 'foo' at ./mysql.pl line 15.

-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    9:52pm up 7 days 14:06 load average: 1.00 1.01 1.00


Relevant Pages


Loading