develooper Front page | perl.perl5.porters | Postings from June 2011

[perl #85026] deleting elements in a HASH iterator

Father Chrysostomos via RT
June 11, 2011 13:53
[perl #85026] deleting elements in a HASH iterator
Message ID:
On Sun Feb 27 09:53:44 2011, wrote:
> A further note: while debugging this issue it was annoying that
> Devel::Peek::Dump doesb't actually dump the HASH elements when an
> iterator is active. Also added is a patch that does the iteration to
> dump the HASH contents by iterating over it by hand (not disturbing
> any active iterator). With that it also doesn't activate hash magic
> during iteration, which I think is a feature
> ...
> Patch to iterate a hash by hand during do_sv_dump:
> ============================================================
> --- /home/ton/src/perl-5.10.1/dump.c	2009-07-09 17:00:51.000000000
>    +0200
> +++ dump.c	2011-02-27 14:59:18.516122042 +0100

Thank you. Applied as b56985536ef. This also fixes all the to-do tests
in ext/Devel-Peek/t/Peek.t, so I’ve removed the TODO markers with commit
f3ce8053656a. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About