Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my $ref = shift;
    ...
      # I expect this change to be visible outside of foo(). 
      $ref = { all => new };
    }
    
  2. or download this
     
    sub foo {
      my $ref = shift;
    ...
      # Modified value is now visible outside of foo()
      $ref->{all} = 'new';
    }