scalar ; now stringifies its argument.
p4raw-id: //depot/perl@17687
if (arg) {
if (SvROK(arg)) {
s->var = SvREFCNT_inc(SvRV(arg));
+ if (!SvPOK(s->var))
+ (void)SvPV_nolen(s->var);
}
else {
s->var =
}
$| = 1;
-print "1..22\n";
+print "1..23\n";
my $fh;
my $var = "ok 2\n";
close($fh);
close($dup);
+# Check reading from non-string scalars
+
+open $fh, '<', \42;
+print <$fh> eq "42" ? "ok 23\n" : "not ok 23\n";
+close $fh;