> > if(ref($exception) || length($exception)) { ... }
>
> I think
>
> if ("$exception") {
>
> works too.
Yes, but it depends again on overloaded operation. And some super duper
error library might pass uncaught again.. Plus, 'undef' seems to be a
valid value for exception too, according to perl docs. And that would
cause warning and pass uncaught too.
So, as bad as it looks, my vote is still for:
if(!defined($exception) || ref($exception) || length($exception)) {
_______________________________________________
Perlunit-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/perlunit-users
- [Perlunit-users] Solution for the problem Andrew Maltsev
- Re: [Perlunit-users] Solution for the problem Andrew Maltsev
- Re: [Perlunit-users] Solution for the problem Adam Spiers
- Re: [Perlunit-users] Solution for the problem Andrew Maltsev
- Re: [Perlunit-users] Solution for the probl... Adam Spiers
- Re: [Perlunit-users] Solution for the p... Matthew Astley
- Re: [Perlunit-users] Solution for ... Adam Spiers
- Re: [Perlunit-users] Solution ... Matthew Astley
- Re: [Perlunit-users] Solut... Andrew Maltsev
- Re: [Perlunit-users] Solut... Matthew Astley
- Re: [Perlunit-users] Solut... Adam Spiers
- Re: [Perlunit-users] Solution for ... Christian Lemburg
- Re: [Perlunit-users] Solution for the problem Christian Lemburg
