If a here-doc occurs inside a single-line quote-like operator inside
a file (as opposed to an eval), it produces an uninitialized warning.
The goto I added in commit
99bd9d90 wentto the wrong place.
}
use strict;
-plan(tests => 8);
+plan(tests => 9);
# heredoc without newline (#65838)
{ switches => ['-X'] },
"crlf-terminated heredoc"
);
+ fresh_perl_is(
+ "print qq|\${\\<<foo}|\nick and queasy\nfoo\n",
+ 'ick and queasy',
+ { switches => ['-w'], stderr => 1 },
+ 'no warning for qq|${\<<foo}| in file'
+ );
}
s = olds;
}
else
+ streaming:
sv_setpvs(tmpstr,""); /* avoid "uninitialized" warning */
- streaming:
term = PL_tokenbuf[1];
len--;
while (s >= PL_bufend) { /* multiple line string? */