title: How do I pass a hash to subroutine?
body: <p>Need help figuring out how to do this. My code:</p>
  
  <pre><code>my %hash;
  $hash{'1'}= {'Make' =&gt; 'Toyota','Color' =&gt; 'Red',};
  $hash{'2'}= {'Make' =&gt; 'Ford','Color' =&gt; 'Blue',};
  $hash{'3'}= {'Make' =&gt; 'Honda','Color' =&gt; 'Yellow',};
  
  
  &amp;printInfo(%hash);
  
  sub printInfo{
     my (%hash) = %_;
     foreach my $key (keys %_{       
      my $a = $_{$key}{'Make'};   
      my $b = $_{$key}{'Color'};   
      print "$a $b\n";
      }
  }
  </code></pre>