in reply to Remove similar key=value pair from HOH
Perl hash unable to store duplicated keys. See and run the code snippet below.
use Data::Dumper; my %hash =( 'script' => 'foo.pm', 'params' => { 'err' => '99', 'FILE' => 'fileA' }, 'par_global' => { 'err' => '99', # this value (99) is o +verwritten 'err' => '20', # with (20) 'FILE_READ' => 'fileB', }, 'testset' => ['test1'] ); print Dumper( \%hash ) . "\n";
|
|---|