- delete local
delete local
my %h = (foo => 'bar'); say exists $h{foo} ? 1 : 0; { delete local $h{foo}; say exists $h{foo} ? 1 : 0; } say exists $h{foo} ? 1 : 0;
1 0 1
my %h = (foo => 'bar'); say exists $h{foo} ? 1 : 0; { delete local $h{foo}; say exists $h{foo} ? 1 : 0; } say exists $h{foo} ? 1 : 0;
1 0 1