> Hello List, 
> To explain the problem I am having, I wrote a simple snipet 
> that doesn't do 
> anything meaningful other than illustrating the behaviour I 
> want to avoid:
> 
> my %hoh = (
>             1 => {
>                 a => 5, b => 5
>                 },
> 
>             2 => 5
>            );
> 
> 
> my @res = &RANDOMSUB;  #call a random subroutine
> 
> print "$hoh{1}{a}  $hoh{2} \n";
> 
> 
> sub RANDOMSUB {
>     my %hohcopy = %hoh;
> 
>     $hohcopy{1}{a} = 2;
>     $hohcopy{2} = 2;
> }

Search for "clone" on search.cpan.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to