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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -