ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk
pdk
RE: perlapp - build exe from script but errors when running exe
by Jan Dubois other posts by this author
Dec 12 2007 12:40PM messages near this date
RE: perlapp - build exe from script but errors when running exe | RE: perlapp - build exe from script but errors when running exe
On Wed, 12 Dec 2007, Brzezinski, Paul J wrote:
>  Yes it did seem to work!
> 
>  I still get one line that I don't expect...is this related to the way
>  the 3rd party module uses DynaLoader?
> 
>  Use of uninitialized value in pattern match (m//) at
>  /<C:\source\misc_perl\AIXperf.exe>DynaLoader.pm line 163.

Yes.  You should fix the autoImport() function of your 3rd party module
by adding the following line:

>  sub autoImport
>  {
>    my $ver = shift;
>    if (!(eval "
>      package $ver;
>      require DynaLoader;
>      \@ISA = qw(DynaLoader);

      \$INC{\"$ver.pm\"} = \$INC{\"perlchartdir.pm\"};

>      bootstrap $ver;
>      sub perlchartdir::major_ver { return &major_ver; };
>      sub perlchartdir::minor_ver { return &minor_ver; }
>      sub perlchartdir::copyright { return &copyright; }
>      sub perlchartdir::id { return &id; }
>      sub perlchartdir::callMethod { return &callMethod; }
>    ") && ($@)) {
>      die;
>    }
>  }

Fixing the warning may actually be needed to make sure the extracted
library is properly deleted on process exit.

Cheers,
-Jan


_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Paul J Brzezinski
Jan Dubois
Paul J Brzezinski
Jan Dubois
Paul J Brzezinski
Jan Dubois
Paul J Brzezinski
Paul J Brzezinski
Jan Dubois
Paul J Brzezinski

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved