Marcus Holland-Moritz wrote: Thanks for this - I'm hoping the fault is in my code as that will be easier to fix ;-) and having a working example to compare against will be a great help. > I also have a module that implements a tied hash purely in XS, > but I don't see any problems with 5.8.2. > > The only changes between major perl releases I can find are > between 5.005_03 and 5.6.0 (which changed the order of calls > to FETCH/STORE when doing 'values %hash') and between 5.8.0 > and 5.8.1 (which made DESTROY being correctly called in void > context). I can see no change (from the API point of view) > that affects how CLEAR is being called. > > If you'd like to have a look, my module (Tie::Hash::Indexed) > can be built with debugging support by saying > > perl Makefile.PL enable-debug > > which allows you to trace each method call by exporting > > THI_DEBUG_OPT=d > > in your environment. -- Alan Burlison --Thread Previous | Thread Next