title: No such file or directory, opening "~/filename" from perl
body: <p>I am getting the "no such file or directory" error, but of course, there actually is the file in question. I am using double quotes. I am running the code in the directory where the file is located.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>#!/usr/bin/perl;
  use warnings;
  use strict;
  use diagnostics;
  
  open(FASTA, "&lt;", "~/LDTest.rtf")
  </code></pre>
  
  <p>This fails even if:</p>
  
  <pre><code>touch ~/LDTest.rtf
  cd ~
  </code></pre>
  
  <p>...is run from the shell before starting the script, to ensure that the file exists and is in the current directory.</p>