title: How do you use ImageMagick in Perl?
body: <p>I'm trying to get the command line equivalent of "identify image.png" to work in Perl. </p>
  
  <p>How do you go about doing this?</p>
  
  <p>Thanks. </p>
  
  <p>Update:
  I have the following code</p>
  
  <pre><code>        use Image::Magick;      
      $image = Image::Magick-&gt;new;
      open(IMAGE, 'image.gif');
      $image-&gt;Identify(file =&gt; \*IMAGE);
      close(IMAGE);   
  </code></pre>
  
  <p>But get the following error:</p>
  
  <blockquote>
    <p>Can't locate Image/Magick.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .)</p>
  </blockquote>