Help, I am hopelessly confused!!
Lets say that I have the following hash:
%hash = (
'key1' => {
1 => {
'var' => 1,
1 => {
'name1' => 'value3',
'name2' => 'value2',
'name3' => 'value3'
}
},
2 => {
'var' => 1,
1 => {
'name1' => 'value1',
'name2' => 'value2',
'name3' => 'value3'
}
},
}
);
Now, how do I copy one part of this hash, such as the %hash{'key1'}{1} section??
Would it be done with one of these?:
1. %copy = %hash{'key1'}{1}
2. %copy = %{$hash{'key1'}{1}}
I really have no clue... I have just begun last week working with complex hashes and arrays, and I'm just a little confused! %-|