0

I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work.

Any way to modify apache to look/use the new Perl instance?

1 Answer 1

0

Can you start your cgi script with a she-bang, using the path of your desired perl:

#!/usr/bin/perl -w
2
  • Adding the desired perl on header as you suggested works.
    – user114082
    Mar 14, 2012 at 19:23
  • @lupin -- thanks. If you are satisfied with the solution, could you mark my answer as accepted? Mar 14, 2012 at 20:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .