vparikh has asked for the wisdom of the Perl Monks concerning the following question:
And this is my other code that I have to get to 'Date" field:$VAR1 = { 'Data1' => { 'Data2' => { 'DATE' => '2000-10-19', 'ID' => 'A95', 'STATUS' => 'A', 'TIME' => {}, }, 'TIMESTAMP' => '2012-08-04T20:15:04.506-04:00' } };
I have tried both of those and other variations but it does not print out anything. My goal is to print out just '2000-10-19'. Am I doing something wrong?my $val = $config->{'Data1'}->{'DATE'}; or my $val = $config->{'Data1'}->{'Data2'}->{'DATE'};
|
|---|