-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDBM tied hash weirdness; deletion ends 'each' loop #12894
Comments
From @jmdhCreated by @jmdhThe following bug was reported in Debian: The test program which follows demonstrates that, contrary to all #! /usr/bin/perl use GDBM_File; %iddb = (); for (1..20) { $iddb{"$_"} = $_; } print "Before deletion:\n\n"; while (1) { Immediately after the delete, each apparently returns undef. This behaviour appears to have been the case since roughly forever[1] From perlfunc: After "each" has returned all entries from the hash or array, while (($key, $value) = each %hash) { [1] <http://diswww.mit.edu/bloom-picayune.mit.edu/perl/7564> Perl Info
|
From zefram@fysh.orgThis weirdness arises because deleting from a gdbm hash can reorganise -zefram |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#117449 (status was 'resolved')
Searchable as RT117449$
The text was updated successfully, but these errors were encountered: