[Dbix-class] Re: Catching DBI errors, without eval?

Carl Franks fireartist at gmail.com
Tue Nov 14 13:15:58 GMT 2006


On 14/11/06, Len Jaffe <lenjaffe at jaffesystems.com> wrote:

> It has been my understanding that try/catch is built out of eval()s and that
> evals have to compile every time their run.  It has been my inference that
> this would be salower than the perror() method of returning error codes.
> But I don't know for sure.

eval "" ne eval {}

Only string eval is compiled on the fly (runtime).

Block eval is compiled at startup like any other normal code, and has
similar performance to other types of block scopes.

Carl



More information about the Dbix-class mailing list