title: Open file in perl with sudo
body: <p>I'd like to write data to a file, but the file handle should be opened with sudo or else I get permission denied error. But looks like something like following is not possible in perl?</p>
  
  <pre><code>sudo open (FH, "&gt; $filename") or die "$!\n";
  </code></pre>