I had a script that contained something like:

 use strict;
 use Inline(CPP => DATA,
          BUILD_NOISY => 1,
          CLEAN_AFTER_BUILD => 0,
          CLEAN_BUILD_AREA => 0,
         );

 __DATA__
 __CPP__

When I used this module, it would say "Unknown error".

In trying to track this down with the perl debugger, I got it to at least say "BEGIN not safe after errors". But it would never tell me what the actual problem was.

Eventually, I don't remember how, I finally figured out that the problem was that I was using the bareword DATA with 'use strict' active.

Is there any way to get it to spit out the relevant error message?

Inline version 0.44
Parse::RecDescent version 1.80




Reply via email to