title: Want to execute a perl script within a perl script
body: <p>I need a help on perl. I am new to it.
  I want to execute a perl script from my parent perl script and cover the following scenarios:</p>
  
  <pre><code>if (my child script takes more time than my time limit)
  {
      I need to kill the child script with a return code 
      logged into my parent script log file
  }
  
  if (my child script failed to execute)
  {
       I need to write a new RC to my parent script logfile 
       by looking at my child script exit status
  } 
  </code></pre>
  
  <p>Can any body provide code for this like how to use fork, exec and process related commands
  to fetch process id of children when my parent script gets executed?</p>