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

Hello perl monks, I am facing a scenario in which I have to make sure that I read the binaries from a specific lib path in solaris. So my used case is spawning a process from Linux client on to Solaris. So the I am trying to set a path during complie time as the path is not getting visible dynamically when process is directly triggered on solaris box. So setting the path during compile time works fine when process is directly triggered from solaris. But in case of Linux->Solaris the path set suring compile time is not reflected on solaris

 sub get_lib { use Config(); return '/u/temp/perl_temp/lib/perl5'; } BEGIN { $tmp_lib = get_lib(); push (@INC, $tmp_lib);}

Looking for some advise or help to solve this scenario. Thanks in advance

  • Comment on path set in @INC not visible if process is spwaned from linux to solaris
  • Download Code

Replies are listed 'Best First'.
Re: path set in @INC not visible if process is spwaned from linux to solaris
by Anonymous Monk on Jun 04, 2013 at 09:49 UTC