Help for this page

Select Code to Download


  1. or download this
    sub Tie::STORE {
       ${$_[0]} = $_[1] unless defined ${$_[0]}
    }
    
  2. or download this
    tie my $x, 'Tie';
    my $f = sub { $x };
    ...
    }
    $x = 1;
    print $f->(), "\n"; # => 2 is still tied