Czy w Perlu jest bezpieczne usuwanie klucza z odnośnika mieszania, gdy pętlę wykonuję w tym samym skrócie? I dlaczego?
W zasadzie chcę to zrobić:
foreach my $key (keys $hash_ref) {
Do stuff with my $key and $hash_ref
# Delete the key from the hash
delete $hash_ref->{$key};
}
Czy to bezpieczne? I dlaczego?