> > 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

Reply via email to