Help for this page

Select Code to Download


  1. or download this
    sub TIESCALAR { bless \my $o => $_[0] }
    sub FETCH { print "Tied\n" }
    ...
        local $x;
        $x; # => Tied
    }
    
  2. or download this
    our $x;
    {
    ...
        tie $x => 'main';
    }
    $x; # nothing (except a warning about void context)