On Tue, Dec 02, 2003 at 10:05:46PM -0800, Michael G Schwern wrote:
> Why not?
>
> catch MyError with {
> like( $ex, qr/Bad thing/ );
> };
If there is no exception then then that test won't execute. It'd have to be
something like
try {
f();
fail("no exception");
}
catch MyError with {
like( $ex, qr/Bad thing/ );
};
but that runs the risk of forgetting the fail(),
F
