title: Unable to iterate over an array in hash in Perl script
body: <p>Please help me resolve this issue</p>
  
  <h1>pre_package_config.pm</h1>
  
  <pre><code>use strict;
  our %pre_pkg_configs;
  
  $pre_pkg_configs{locDbList}=['default','default_test'];
  </code></pre>
  
  <h1>second.pl</h1>
  
  <pre><code>#!/usr/bin/perl
  use Expect;
  use strict;
  
  our %pre_pkg_configs;
  
  my  $pre_pkg_file = './pre_package_config.pm';
  
  eval {require $pre_pkg_file};
  
  foreach my $db ( $pre_pkg_configs{locDbList} ){
      print $db;
  }
  </code></pre>
  
  <h1>Output:</h1>
  
  <p>ARRAY (0x10092ae88)</p>
  
  <h1>Should have been:</h1>
  
  <p>default
  default_test</p>