title: sourcing a shell script from a perl script
body: <p>I have a shell script to change my path permanently to another path. My requirement is to source it using a perl script(perl script has some other code as well and finally it has to source the below shell scipt)</p>
  
  <p>test.sh:</p>
  
  <pre><code>!/bin/bash
  cd /db/oa/invoke/path
  </code></pre>
  
  <p>test.pl:</p>
  
  <pre><code>!/usr/bin/perl
  system("source /home/test.sh");
  </code></pre>
  
  <p>but sourcing is not working. I know the command <code>system("sh /home/test.sh --help")</code> for shell script execution from perl script. But I need similar command to source the shell script. Please let know, if I am missing any details. I have already seen questions being asked on same topic, but i didn't see a proper solution for sourcing. can anyone help me on this.</p>
  
  <p>Regards Anand</p>