On 11/14/06, Richard Jolly <[EMAIL PROTECTED]> wrote:


I thought that the chapter on exceptions in PBP was the best part of
the book. I'd recommend it if you are looking to move away from the
'return false' idiom. It gives a very clear and convincing discussion
of when to use exceptions, and a decent discussion of the techniques
available.


Has anybody benchmarked the difference between the try/catch and perror() methodologies.
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.

Is there a de facto try/catch module out of CPAN that everybody likes?

Len.
--
[EMAIL PROTECTED]
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to