title: How to Call Perl script from tcl script
body: <p>I have a file with 4 perl commands ,
  I want to  open the file  from the tcl and  execute each perl command. </p>
  
  <p><strong>TCL script</strong></p>
  
  <pre><code>runcmds $file
  
  proc runcmds {file} {
  
      set fileid [open $file "r"]
      set options [read $fileid]
      close $fileid
  
      set options [split $options "\n"]    #saperating each commad  with new line
  
      foreach line $options {
      exec perl $line  
      }
  }
  </code></pre>
  
  <p>when executing the above script 
  I am getting the  error as  <code>"can't open the perl  script /../../    :   No Such file or directory " Use -S to search $PATH for it</code>.</p>