Thanks for your insight.
So I went back to twig technology and copied the hash viasub copy_hash { my $hr = shift // return {}; # get hash to copy or return empty ha +shref if not given my %copy = (); while (my ($k, $v) = each %{$hr}) { $copy{$k} = $v; } return \%copy; }
Which works. So this is it? Best way to go?
Bye
PetaMem All Perl: MT, NLP, NLU
In reply to Re^2: %+ and cloning
by PetaMem
in thread %+ and cloning
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |