fast has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am trying to use perl2exe but got an error of
Can't locate attributes.pm in @INC (@INC contains: PERL2EXE_STORAGE

Then I use the #perl2exe_include "attributes.pm";

Then i re-run the perl2exe, however I got another error Bareword "_warn_reserved" not allowed while "strict subs" in use at PERL2EXE_STRAGE/attributes.pm line 48.
Please Help, I try to use #perl2exe_include "strict.pm"; too but no luck.
I am using perl2exe version 8.82,
Activeperl 5.8.8 Thanks all in advance

Replies are listed 'Best First'.
Re: Please Help ! Perl2Exe error
by Anonymous Monk on Oct 31, 2012 at 21:14 UTC
    Hi --- I recently had the same issue. I was able to resolve it by doing the following: In your script, add: #perl2exe_include attributes; In Perl/lib/attributes.pm line 48, change: _warn_reserved ..to _warn_reserved()

      Sorry for the unformatted reply, here it is a bit clearer:

      I recently had the same issue. I was able to resolve it by doing the following:

      In your script, add:

      #perl2exe_include attributes;

      In Perl/lib/attributes.pm line 48, change:

      _warn_reserved ...to _warn_reserved()