Yes, the code snippet on the page you posted link to is the one I meant above that I have included in my script. I found it to be suggested on cPanel Perl Modules page (the page you posted link to). The script I am testing this with is a very simple one. Basically it only tries to include a few major perl modules required by my perl application - "testing the ground is ready to install the application". It just tries to include the perl modules to see if it can include them and prints out the current time. The one thing that might complicate it but hopefully not (or it can be worked out, so that it can work), is that I am using the more up-to-date version of perl than the default old version. I am using perl 5.14.1 as I found in another post here on HelioNet / HelioHost. The script source is here: #!/usr/bin/env perl5.14.1
BEGIN {
my $b__dir = (-d '/home/raycone/perl'?'/home/raycone/perl' getpwuid($>) )[7].'/perl');
unshift @INC,$b__dir.'5/lib/perl5',$b__dir.'5/lib/perl5/x86_64-linux',map { $b__dir . $_ } @INC;
}
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use v5.12;
use strict;
use warnings;
use AnyEvent::Log;
use Moo;
use Moose;
use KiokuDB;
print "Content-type: text/html\n\n";
print '<html>
<body>';
print '<p>Time: '.localtime()."</p><hr />\n";
print '</body></html>';
1; Moo, Moose and KiokuDB are displayed in the list of installed perl modules on cPanel's Perl Modules page (the link you posted). Still the script dies trying to include them.