Help for this page

Select Code to Download


  1. or download this
     sub foo {    # pass by ref
      my $ref = shift;
      $ref->{one} = q{One};
      $ref = {}; # why won't this replace the underlying hash?
      return $ref;
    }