Calling keys in your Perl sub resets the iterator (see each) in your XS code.
- tye
In reply to Re: Callback function in xsubpp (each) by tye in thread Callback function in xsubpp by sriniiyer