Help for this page

Select Code to Download


  1. or download this
    {
       local $tied = 'x';
       ...
    }
    
  2. or download this
    {
       my $restorer = localiser($tied, 'x');
       ...
    }
    
  3. or download this
    use Sub::ScopeFinalizer qw( scope_finalizer );
    
    ...
       $$var_ref = $_[1];
       return scope_finalizer { $$var_ref = $saved };
    }
    
  4. or download this
    use strict;
    use warnings;
    ...
       print $tied_lex;          # c
       print "\n";
    }
    
  5. or download this
    axyzbc
    axyzbc