The above code is not equivalent to your example. The code below is.foreach (@hashNames) { ${$_}{'key'} = $i; }
foreach (@hashNames) { %{$_} = ( key' => '0' ); }
In reply to Re: Dynamically naming and creating hashes
by Anonymous Monk
in thread Dynamically naming and creating hashes
by mellin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |