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

[perl #85026] deleting elements in a HASH iterator

From:
Father Chrysostomos via RT
Date:
June 11, 2011 13:53
Subject:
[perl #85026] deleting elements in a HASH iterator
Message ID:
rt-3.6.HEAD-16080-1307825597-1194.85026-15-0@perl.org
On Sun Feb 27 09:53:44 2011, perl@ton.iguana.be 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.






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About