title: Use of uninitialized value in list assignment in Perl
body: <p>When I run the code below, I get warning "Use of uninitialized value in list assignment":</p>
  
  <pre><code>local %ENV = ();
  %ENV = foo(); //foo returns a hash
  </code></pre>
  
  <p>The dump result of %ENV is:</p>
  
  <pre><code>{
    'KEY1' =&gt; '-',
    'KEY2' =&gt; '-',
  }
  </code></pre>
  
  <p>But the warning keeps coming out at line <code>%ENV = foo()</code>;</p>
  
  <p>Thanks!</p>