Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
1. No I don't. I tried to use them, but failed to see how they can make my life easier, and code cleaner and more reliable, comparing to using die. When I'm using eval I usually just want to know if code succeed or failed, I can't remember right now any case where I wanted to perform different actions based on the $@ content. Some of my colleagues are actively using Exception::Class and, from my point of view, it doesn't make their code better. I just hate to see statements like:
2. If I will learn how to use exception objects to improve my code quality I will immediately start to use them. 4. Yes, I think generally it is a bad idea. Redefining $SIG{__DIE__} may cause some hard to debug problems. In reply to Re: Do you use an exception class in your Perl programs? Why or why not?
by zwon
|
|