If I have a hash of a hash, is there a way to set another hash table equal to the "hash" of the original hash table?
For example,
$hash1 => {
"stuff1" => {
"substuff1" => "hello";
"substuff2" => "goodbye";
},
"stuff2" => {
"substuff1" => "hello";
"substuff2" => "goodbye";
},
};
And I want to do something like:
%hash2 = $hash1{"stuff1"};
Is that doable? If so, can someone point me the way?
Thanks in advance!
For example,
$hash1 => {
"stuff1" => {
"substuff1" => "hello";
"substuff2" => "goodbye";
},
"stuff2" => {
"substuff1" => "hello";
"substuff2" => "goodbye";
},
};
And I want to do something like:
%hash2 = $hash1{"stuff1"};
Is that doable? If so, can someone point me the way?
Thanks in advance!