title: Perl get value of a key
body: <p>I have been stuck in trying to create an array of keys (example_com,example_ca ..etc) if they are set to 1, I have tried using for loop and foreach loop, but keep getting ARRAY# error.</p>
  
  <pre><code>$VAR1 = [
        {
          'example_com' =&gt; '1',
          'example_ca' =&gt; '1'
        }
      ];
  </code></pre>
  
  <p>Thanks </p>