title: How to get "Var1" value of dumper in perl
body: <p>When i use below code then it gives output, But i want "width", "file_media_type", "file_ext" values, But I am unable to get this value in individual. I am very new with Perl Please help me!</p>
  
  <p>Code</p>
  
  <pre><code>use warnings ;
  use strict;
  use Image::Info qw[image_info];
  use Data::Dumper;
  
  my $file = 'd:\perl\test\a.jpg';
  my $info = Dumper(image_info($file));
  print $info;
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>$VAR1 = {
            'width' =&gt; 45,
            'file_media_type' =&gt; 'image/png',
            'file_ext' =&gt; 'png',
            'PNG_Chunks' =&gt; [
                              'IHDR',
                              'gAMA',
                              'cHRM',
                              'IDAT',
                              'IEND'
                            ],
            'Chunk-cHRM' =&gt; '  z%  Çâ  ·   ÇF  u0  O`  :ù  ?o',
            'PNG_Filter' =&gt; 'Adaptive',
            'color_type' =&gt; 'RGB',
            'height' =&gt; 20,
            'Gamma' =&gt; '0.45454',
            'resolution' =&gt; '1/1',
            'SampleFormat' =&gt; 'U8',
            'Compression' =&gt; 'Deflate'
          };
  </code></pre>