- or download this
qwurx [shmem] .../build/perl-5.25.10> grep hv_iternext_flags *.c *.h
hv.c: while ((entry = hv_iternext_flags(ohv, 0))) {
...
hv.h:/* Flags for hv_iternext_flags. */
hv.h:#define hv_iternext(hv) hv_iternext_flags(hv, 0)
proto.h:PERL_CALLCONV HE* Perl_hv_iternext_flags(pTHX_ HV *hv, I32
+flags)
- or download this
/* file Foo.xs */
#define PERL_NO_GET_CONTEXT
...
HV * hv
CODE:
hv_store(hv,"newkey", 6, newSVpv("foo", 3),0);
- or download this
use blib;
use Foo;
...
__END__
Use of each() on hash after insertion without resetting hash iterator
+results in undefined behavior, Perl interpreter: 0x224f010 at foo.pl
+line 6.
{ bar => 2, foo => 1, newkey => "foo" }