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

Len Jaffe lenjaffe at jaffesystems.com
Tue Nov 14 13:36:29 GMT 2006


On 11/14/06, Carl Franks <fireartist at gmail.com> wrote:
>
> 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.



Thanks.  Now I Know.
Len.
Did I really type salower?  and gmail has a spellchecker...ugh.



-- =

lenjaffe at jaffesystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/dbix-class/attachments/20061114/a9d=
4250f/attachment.htm


More information about the Dbix-class mailing list