Mark,
I ahve been asking this question for some time
now....though admitedly not specific to bytecode and ByteLoader but just how to
"precomplie" a mod_perl mod. I went to www.experts-exchange.com and got a
great walk through of how to use ByteLoader but as with you it fails in
mod_perl.... I'm passing you the info they gave me just in case you can see how
to give it that final twist.....I and the person who gave me the answer were
unable.....
>>>
This may bring you on the right track, but be
careful you are entering headache land:
$ cat foo.pm package
foo;
sub bar { print "a foo::bar\n"; return
1; }
1;
$ cat bar.pl use lib "."; use
foo;
foo::bar();
$ perl -MO=Bytecode,-O6,-o,bar.plc
bar.pl bar.pl syntax OK
$ ls -l total 162 -rw-r--r--
1 thoellri 35 Jan 24 18:02
bar.pl -rw-r--r-- 1 thoellri 153053 Jan 24
18:30 bar.plc -rw-r--r-- 1 thoellri
66 Jan 24 18:02 foo.pm
$ echo
"use Byteloader 0.03;\n" > loader.pl
$ cat bar.plc >>
loader.pl
$ ls -l total 322 -rw-r--r-- 1
thoellri 35 Jan 24 18:02
bar.pl -rw-r--r-- 1 thoellri 153053 Jan 24
18:30 bar.plc -rw-r--r-- 1 thoellri
66 Jan 24 18:02 foo.pm -rw-r--r--
1 thoellri 153075 Jan 24 18:32 loader.pl
$
perl loader.pl a foo::bar
$ perl -v
This is perl, v5.6.0
built for sun4-solaris
Copyright 1987-2000, Larry Wall
Perl
may be copied only under the terms of either the Artistic License or
the GNU General Public License, which may be found in the Perl 5.0
source kit.
Complete documentation for Perl, including FAQ lists,
should be found on this system using `man perl' or `perldoc perl'.
If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home
Page.
Have fun
:-) Tobias
|
>>>>
I hope that you, I or someone will find the key
because I am (as I'm sure you are) very anxious to have this solution in
place........good luck!
Jason Z. Leidigh Project Leader UOL
Internacional Av.Libertador 1068 - Piso 3 Capital Federal - ( C1112ABN
) Buenos Aires - Argentina T.E:
0054-11-5777-2446 Fax: 0054-11-5777-2402 www.uol.com.ar[EMAIL PROTECTED]
|