LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Philippe Schaffnit Date: Mon Feb 6 04:56:02 2006 Subject: Problem with PAR, autouse, and Linux 32/64?
Hi!
This might not be right place to ask, but I have a problem involving
several thinks, and...
I've been using PP (Perl Packer) to create standalone executables from
Perl scripts for some time now, but I have just realised that using
"autouse" creates some special difficulties with 64-bit Linux.
This happens only in a specific configuration: I create the archive on
32-bit Linux machine and try to run it on a 64-bit (Linux) machine. This
archive works fine on several 32-bit machines, but fails on the (two)
64-bit ones to which I have access. This strongly linked to "autouse",
as turning it in a "plain" "use" results in fully functional archives!
I could very well be missing something very obvious, but... I'd like to
know...
Does anyone have any idea about this?
Thanks!
Philippe
PS: the error message I get (with "autouse"):
Can't locate autouse.pm in @INC (@INC contains: [...] .) at
script/Hello_World_Autouse.pl line 8.
BEGIN failed--compilation aborted at script/Hello_World_Autouse.pl line
8.
PPS: a script exhibiting this behaviour (in "autouse mode"):
#!/bin/perl -W
#
#
use strict;
use FindBin;
use lib $FindBin::RealBin;
#
# use Hello_World;
use autouse "Hello_World" => qw(Hello_World);
#
#
&Hello_World;
#
#
__END__
PPPS: the module:
#
package Hello_World;
use Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT= qw(&Hello_World);
#
use strict;
#
sub Hello_World {
print "\nHello world!\n\n";
};
#
1;
#
__END__
| Navigate in group perl.64bit at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |