title: MongoFiles, GridFS, and Perl
body: <p>I've been using perl, MongoDB, and GridFS for some pet development, and wonder - is there anyway for perl to interface with Mongofiles (other than navigate there with system commands and call it that way, heh) - like..well...a cpan library? Or an extension of the current CPAN module for Mongo?</p>
  
  <p>For an example of what I'd like to do:</p>
  
  <p>I'd like to be able to store files into my mongoDB and retrieve files into my mongoDB - for example, from the command line, once I have navigated to the directory with mongofiles in it, I can execute</p>
  
  <pre><code>mongofiles put "C:\Users\Me\cool.txt"
  </code></pre>
  
  <p>And it will store the file into the DB! Let's say I DELETE cool.txt off of my drive. Now when I execute:</p>
  
  <pre><code>mongofiles get "C:\Users\Me\cool.txt"
  </code></pre>
  
  <p>It retrieves the file out of the DB and puts it in my directory! I just want to be able to access this mongofiles functionality from Perl. Even if that means having a copy of mongofiles in the directory with my script.</p>