We don't bite newbies here... much | |
PerlMonks |
Re^3: What operator should perl5porters use for safe dereferencing?by Anonymous Monk |
on May 31, 2012 at 07:23 UTC ( [id://973449]=note: print w/replies, xml ) | Need Help?? |
eval{} surely works. But it works too well. Far too well! It'll happily eat any exception whatsoever. Sure you will be able to tell whether it's the kind of exception that happens when calling a method on an undef, but will it be one of the calls you have here or is it somewhere deep down within one of the methods? For me, I don't see that as a problem, either I want exceptions, or I want to ignore them I doubt there exists a situation where I would want to ignore only this particular exception: Can't call method "%" on an undefined value But if there was, I'm sure I'd use one of cpan's exception filtering modules instead of ~>
In Section
Past Polls
|
|