- or download this
GV *to_string = gv_fetchmethod (SvSTASH (sv), "toString");
if (to_string) {
...
FREETMPS;
LEAVE;
}
- or download this
void
func (SV *scalar)
...
SvPOK_only(result);
serialize(result, scalar);
XPUSHs(result);
- or download this
SV*
func (SV *scalar)
...
RETVAL = result;
OUTPUT:
RETVAL