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