title: Within Perl, how can I mark a generated file as executeable?
body: <p>In my perl script, I create a shell script (something to post-process the results of a long simulation).  I'd like to mark this file as executable.</p>
  
  <pre><code>$fileName = 'postProcess.tcsh';
  </code></pre>
  
  <p>Clearly, I could do the following:</p>
  
  <pre><code>system("chmod +x $fileName");
  </code></pre>
  
  <p>But I'm curious if there is a solution which avoids the system call. In other words, would there be a method within the File module perhaps?  What say you monks?</p>