{ my $g = wrapper->instance; $g->{'key'} = 'value'; } $h = wrapper->instance; die "Bad mojo!" if exists $h->{'key'};