in reply to PerlApi question

The SvPV*() calls set the length variable rather than read it.

Dave.