Help for this page

Select Code to Download


  1. or download this
    my (%hash);
    $hash{'id1'} = "1";
    ...
    my ($href) = @_;
    $$href = "value changed in doSub2";
    }
    
  2. or download this
    #... inside doSub1
    my ($s) = $$hrec_ref{'id2'};
    doSub2(\$s);
    $$hrec_ref{'id2'} = $s;