PERL question

Hi,

we complied the perl on diff machine ( /opt/dba/perl-5.8.8) . Created TAR and using it on diff box ( again the location is same) . when I tried to put this tar to diff locaiton , it PERL connections are failing . because the @ INC still pinting to :

oracle@abc:/opt/dba/oraadmin/tools DEV$ $PERL -le 'print foreach(@INC)'
/opt/dba/perl-5.8.8/lib/5.8.8/x86_64-linux
/opt/dba/perl-5.8.8/lib/5.8.8
/opt/dba/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux
/opt/dba/perl-5.8.8/lib/site_perl/5.8.8
/opt/dba/perl-5.8.8/lib/site_perl

is there a way tto modify this to pint to new path ( something like /opt/dba/10g_perl/perl-5.8.8) , without building the whole PERL again ?

Thanks

Hi,

as long as you have already compiled perl, to change the default @INC the best way is to compile.

Now if you really can't compile it again, you can manipulate @INC as any regular perl array to replace the values you want to replace, but you must to that into a BEGIN {} block at the begining of the perl script.

Good luck.