Help for this page

Select Code to Download


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