Q:

add Perl Modules' Directory to include path using .htaccess for CGI scripts

I've used Cpanel to install per modules on my host server running lightspeed.
It gave an "Installation Successful" message too.
But it shows:
Location of Your Perl Module(s)
Path: /home/username/perl
Using Your Perl Module(s):
You will need to add /home/username/perl to the include path. 
Is it possible to add it using only .htaccess? Because it's my only access to the server.

A:

It should be possible using the SetEnv directive. Try putting this in your .htaccess:
SetEnv PERL5LIB /home/username/perl

If you want to add more than one path, separate them with :, like this:
SetEnv PERL5LIB /home/username/perl:/some/other/path

You can (of course) also use this to set other environment variables.
Another option would be adding it to the include path from inside Perl itself. You will have to add the line use lib "/home/username/perl"; to the CGI script(s), somewhere before it loads the module(s) installed there.

