Hello,
%newHash = %$bigHash will suffice. I do not understand what you mean you do not have access to %bigHash in your example %bigHash simply does not exists: it exists an anonymous hash ie $bigHash
For the copy what you say is impossible:
perl -MData::Dumper -e '$href={a=>1,b=>{c=>1,d=>{e=>5}}}; %copy = %$hr
+ef; print Dumper \%copy'
$VAR1 = {
'a' => 1,
'b' => {
'c' => 1,
'd' => {
'e' => 5
}
}
};
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
|