title: Perl: What's the proper way to pass a hash ref plus additional keys/values as one hash ref?
body: <p>The purpose is to only ammend the hashref argument being passed to the function, but not modify the original hashref.</p>
  
  <pre><code>{
      my $hr = { foo =&gt; q{bunnyfoofoo},
                 bar =&gt; q{barbiebarbar} };
  
      foo( { %$hr, baz =&gt; q{bazkethound} } );
  }
  
  sub foo {
     my $args = shift // {};
  }
  </code></pre>
  
  <p>I think the above would work, but am not sure there is a better way (other than modifying the orginal ref before passing).</p>