in reply to Returning undef from XS code
See PL_sv_undef in perlapi. The wantarray-like construct is also documented there under GIMME_V.
After Compline,Zaxo