- or download this
sub helper {
my $href = shift;
$href->{NEW_KEY}=1;
}
- or download this
sub my_sub {
$hohref = shift;
...
# wait for all threads to end
$pool->join();
}
- or download this
foreach my $hashref ( values %{$hohref} ) {
helper( $hashref );
}
- or download this
use strict;
use warnings;
...
say "1\t", Dumper $hoh;
my $updated_hoh = my_sub($hoh);
say "2\t", Dumper $updated_hoh;