of $] as it was for compatibility (and perhaps introduce $^V or similar
for the utf8 representation, maybe?)
p4raw-link: @4705 on //depot/utfperl:
a7cb1f9979dd83ab32266dc555f72f0939829c3f
p4raw-id: //depot/perl@4742
open CONFIG, ">$config_pm" or die "Can't open $config_pm: $!\n";
-$myver = 0+$];
+$myver = $];
print CONFIG <<'ENDOFBEG_NOQ', <<"ENDOFBEG";
package Config;
ENDOFBEG_NOQ
\$] == $myver
- or die "Perl lib version ($myver) doesn't match executable version (" . 0+\$] . ")";
+ or die "Perl lib version ($myver) doesn't match executable version (\$])";
# This file was created by configpm when Perl was built. Any changes
# made to this file will be lost the next time perl is built.
case ']':
if (len == 1) {
SV *sv = GvSV(gv);
- GvSV(gv) = SvREFCNT_inc(PL_patchlevel);
- SvREFCNT_dec(sv);
+ (void)SvUPGRADE(sv, SVt_PVNV);
+ SvNVX(sv) = SvNVX(PL_patchlevel);
+ SvNOK_on(sv);
+ (void)SvPV_nolen(sv);
+ SvREADONLY_on(sv);
}
break;
}