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
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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