SVt_FORMAT - the just string buffer.
p4raw-id: //depot/perl@32863
} else {
/* Scalar, so use the string that Perl would return */
/* return the pattern in (?msix:..) format */
+#if PERL_VERSION >= 11
+ pattern = sv_2mortal(newSVsv((SV*)re));
+#else
pattern = sv_2mortal(newSVpvn(RX_WRAPPED(re),RX_WRAPLEN(re)));
if (RX_UTF8(re))
SvUTF8_on(pattern);
+#endif
XPUSHs(pattern);
XSRETURN(1);
}
}
/* Fall through */
#endif
+ case SVt_REGEXP:
case SVt_PV:
if (dtype < SVt_PV)
sv_upgrade(dstr, SVt_PV);