in reply to Re^2: How to create a 4 dimension hash
in thread How to create a 4 dimension hash
Your code does not do what you think. Look at perldsc and Data::Dumper to dump out the data structure you're creating.
"{$G_CauseCode => value}"
is a string, not a hash reference. So your code
$HoH{"$G_Boardno"} = { "$G_ExcepId" => "{$G_CauseCode => value}" };
creates at the second level a hash mapping of the value of $G_ExcepId to the string {... => value}
|
|---|