diff options
author | Abigail <abigail@abigail.be> | 2016-11-18 14:52:18 +0100 |
---|---|---|
committer | Abigail <abigail@abigail.be> | 2017-01-16 19:18:12 +0100 |
commit | d8940893299cd62dcdb1164f85c67ac6279f10b5 (patch) | |
tree | 25ec6e8c5d52a5cb4fa281a1a2c4317334504185 /mg.c | |
parent | 122d6c09702a0437a06efd713ba57d17175289bb (diff) | |
download | perl-d8940893299cd62dcdb1164f85c67ac6279f10b5.tar.gz |
$/ = \-1 will be fatal in Perl 5.28.
Setting $/ to a reference of a non-positive integer has been deprecated
since 5.20, in which it was special cased to act like you had set to
$/ to undef.
In Perl 5.28, setting $/ to a reference to a non-positive integer will
be a fatal error.
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2900,7 +2900,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) if (val <= 0) { tmpsv= &PL_sv_undef; Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED), - "Setting $/ to a reference to %s as a form of slurp is deprecated, treating as undef", + "Setting $/ to a reference to %s as a form of slurp is deprecated, treating as undef. This will be fatal in Perl 5.28", SvIV(SvRV(sv)) < 0 ? "a negative integer" : "zero" ); } |