them will not influence the behaviour of your code.
+=head3 Bare here-document terminators
+
+Perl has allowed you to use a bare here-document terminator to have the
+here-document end at the first empty line. This practise was deprecated
+in Perl 5.000, and this will be a fatal error in Perl 5.28.
+
+You are encouraged to use the explictly quoted form if you wish to
+use an empty line as the terminator of the here-document:
+
+ print <<"";
+ Print this line.
+
+ # Previous blank line ends the here-document.
+
+
=head3 Setting $/ to a reference to a non-positive integer
You assigned a reference to a scalar to C<$/> where the
(D deprecated) The C<$[> variable (index of the first element in an array)
is deprecated. See L<perlvar/"$[">.
-=item Use of bare << to mean <<"" is deprecated
+=item Use of bare << to mean <<"" is deprecated. Its use will be fatal in Perl 5.28
(D deprecated) You are now encouraged to use the explicitly quoted
form if you wish to use an empty line as the terminator of the
here-document.
+Use of a bare terminator was deprecated in Perl 5.000, and
+will be a fatal error in Perl 5.28.
+
=item Use of /c modifier is meaningless in s///
(W regexp) You used the /c modifier in a substitution. The /c
$a = <<;
EXPECT
-Use of bare << to mean <<"" is deprecated at - line 2.
+Use of bare << to mean <<"" is deprecated. Its use will be fatal in Perl 5.28 at - line 2.
########
# toke.c
$a = <<~;
$a = <<~ ;
EXPECT
-Use of bare << to mean <<"" is deprecated at - line 2.
-Use of bare << to mean <<"" is deprecated at - line 4.
+Use of bare << to mean <<"" is deprecated. Its use will be fatal in Perl 5.28 at - line 2.
+Use of bare << to mean <<"" is deprecated. Its use will be fatal in Perl 5.28 at - line 4.
########
# toke.c
$a =~ m/$foo/eq;
fresh_perl_like(
qq(<<\n\$ \n),
# valgrind and asan reports an error between these two lines
- qr/^Use of bare << to mean <<"" is deprecated at - line 1\.\s+Final \$/,
+ qr/^Use of bare << to mean <<"" is deprecated\. Its use will be fatal in Perl 5\.28 at - line 1\.\s+Final \$/,
{},
"don't use an invalid oldoldbufptr (some more)"
);
else
term = '"';
if (! isWORDCHAR_lazy_if_safe(s, PL_bufend, UTF))
- deprecate("bare << to mean <<\"\"");
+ deprecate_fatal_in("5.28", "Use of bare << to mean <<\"\" is deprecated");
peek = s;
while (
isWORDCHAR_lazy_if_safe(peek, PL_bufend, UTF))