From: "Andrew Maltsev" <[EMAIL PROTECTED]>
> More on that problem. The problem is that when a test is executed in
> eval next thing done is:
> my $exception=$@;
> ...
> if($exception) {...}
>
> And the trick is that Error.pm uses `overload' and in that case it would
> return 0, which does not evaluate to `true' in if($exception)!!! It is
> probably a bad design decision on behalf of Error.pm author, but still..
>
> The fix is to change the above code to:
>
> if(ref($exception) || length($exception)) { ... }
Cool. Thank you for this!
>
> Andrew.
>
> P.S. Is there anybody alive in that list? I've got no responce so far..
The developer list has more response, usually.
But who knows how many people are listening.
Cheers,
Christian
>
> _______________________________________________
> Perlunit-users mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/perlunit-users
_______________________________________________
Perlunit-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/perlunit-users