in reply to Re^3: Mixing C and perl
in thread Mixing C and perl

The only downside is that you'd lose the ability to access the outer hash from XSM

Not really, just keep a pointer to the wrapping hash also inside the C structure, as in the OP sample code.