title: How do I get a filehandle from the command line?
body: <p>I have a subroutine that takes a filehandle as an argument.  How do I make a filehandle from a file path specified on the command line?  I don't want to do any processing of this file myself, I just want to pass it off to this other subroutine, which returns an array of hashes with all the parsed data from the file.</p>
  
  <p>Here's what the command line input I'm using looks like:</p>
  
  <p><code>$ ./getfile.pl /path/to/some/file.csv</code></p>
  
  <p>Here's what the beginning of the subroutine I'm calling looks like:</p>
  
  <pre><code>sub parse {
      my $handle = shift;
      my @data   = &lt;$handle&gt;;
      while (my $line = shift(@data)) {
        # do stuff
      }
  }
  </code></pre>