asterisk -> AGI (perl) -> sqlplus(oracle)

Yes, I already declared ‘use lib
“/home/asterisk/lib/lib64/perl5/5.8.8/x86_64-linux-thread-multi/”;’ in my
AGI. When I execute the script as a user Asterisk, i.e. perl -wc test.pl in
return I’m getting OK and no error messages and script is running fine when
I try to run in shell.

Even though I already declared the environmental variables in
.bash_profile. At the end I tired every method but still stuck in this
problem.