perl - Issue in hash modification -
i printing hash [ print dumper($myhash); ]
, below :
$var1= { 'context_verdict' => 'failed', 'logfile' => 'abc', 'block_000' => { 'element_0032' => { 'e_verdict' => 'failed', 'e_name' => 'element_0032', 'e_log' => 'this bad...', 'e_ref' => 'good' } }
now want change value of logfile abc def. how achieve ?
i wrote
$myhash{'$var1'}->{'logfile'}="def";
but not works!! still "abc".
try one:
$myhash->{'logfile'}="def";
data::dumper names variable $var1, not entry in hash.
Comments
Post a Comment