title: How do I find out if the value of a variable in Perl is a scalar or an array?
body: <p>Say I have this:</p>
  
  <pre><code>my %hash;
  
  $hash{"a"} = "abc";
  $hash{"b"} = [1, 2, 3];
  </code></pre>
  
  <p>How can I, later on, find out if what was stored was a scalar, like in <code>"abc"</code>, or an array, like in <code>[1, 2, 3]</code>?</p>