Thank you for your 'general ideas', that's all I'm looking for. The module is very large, so I've already got a minimal example. It is:
#!/apollo/bin/env perl
+
# This is one of the most unbelievably hackish things I've ever done,
# but it seems to be the only way to get this script to run in perl-5.
+8
# while still allowing other scripts on this server to run in perl-5.6
# -davkent
BEGIN {
print "Removing perl.5.6.0 libraries\n";
my $cntr = 0;
foreach $path(@INC) {
if($path =~ /(.*)(perl.5.6.0)(.*)/) {
print "Removing $path\n";
$INC[$cntr] = '.';
}
$cntr++;
}
unshift @INC, "/home/kmullin/Jcode-2.06";
print "Done removing perl libraries\n";
print "Path is now:\n";
foreach $path(@INC) {
print $path . "\n";
}
}
use Amazon::DistributionCenter::Setup;
print "hello world.\n";
The shebang is something we need to do around here to set up the environment, the BEGIN block is to eliminate perl 5.6 libraires, so that we can use 5.8. If you remove the entire begin block, it still gets 'Out of Memory'. It never makes it to print 'Hello, world'. By the way, I just added the unshift command in here as a way to get JCode version 2.06 into the picture. I thought that the problem may be caused by our JCode being 2.03, needing 2.06. I downloaded 2.06, put it into /home/kmullin/Jcode-2.06 thinking that perl would find it there, but its not working, it still hangs, making me think the problem is somewhere else. |