Posted on 2005-08-15 19:37:48-07 by adrianh in response to 893
Re: Test::Exception and XS code

As Yitzchak Scott-Thoennes correctly points out this is nothing to do with XS, but with Test::Exception not being used at compile time. You can get around this by either wrapping the conditional loading up in a BEGIN block:

BEGIN { eval "use Test::Exception"; plan skip_all => "Test::Exception needed" if $@; }

or by calling the Test::Exception functions without prototypes. I've added a note to make this clearer in the documentation.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.