jai_dgl has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I have upgraded Perl5.8.8 to Perl 5.10.0 in Amazon server and Installed CPAN modules, it worked well for few months. Now the issue is whenever I try the script in command line as root user it works well but when the same script is called through browser [PHP script calls the perl script as a daemon user] it tries the Perl older version(5.8.8) checks for the modules only in older version directory not in the 5.10.0 directory

The error log file shows the following message
Can't locate CAM/PDF.pm in @INC (@INC contains: /usr/lib/perl5/site_pe +rl/5.8.8/i386-linux-thread-multi
Perl version shows as follows
# perl -v This is perl, v5.10.0 built for i686-linux
Thanks Jey

Replies are listed 'Best First'.
Re: Daemon User
by Anonymous Monk on Dec 15, 2009 at 14:01 UTC
    instead of #!/usr/bin/perl use the path to the 5.10 version