Message-Id: <
20021227161424.17234e3c.rgarciasuarez@free.fr>
p4raw-id: //depot/perl@18371
break;
case '\\':
if (PL_ors_sv)
- sv_setpv(sv,SvPVX(PL_ors_sv));
+ sv_copypv(sv, PL_ors_sv);
break;
case '#':
sv_setpv(sv,PL_ofmt);
return 1;
}
-print "1..48\n";
+print "1..50\n";
$Is_MSWin32 = $^O eq 'MSWin32';
$Is_NetWare = $^O eq 'NetWare';
ok "@-" eq "0 0 2 7";
ok "@+" eq "10 1 6 10";
+# Tests for the magic get of $\
+{
+ my $ok = 0;
+ # [perl #19330]
+ {
+ local $\ = undef;
+ $\++; $\++;
+ $ok = $\ eq 2;
+ }
+ ok $ok;
+ $ok = 0;
+ {
+ local $\ = "a\0b";
+ $ok = "a$\b" eq "aa\0bb";
+ }
+ ok $ok;
+}