summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2016-11-18 14:52:18 +0100
committerAbigail <abigail@abigail.be>2017-01-16 19:18:12 +0100
commitd8940893299cd62dcdb1164f85c67ac6279f10b5 (patch)
tree25ec6e8c5d52a5cb4fa281a1a2c4317334504185 /mg.c
parent122d6c09702a0437a06efd713ba57d17175289bb (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 1bcfc4f977..8a00dd2541 100644
--- a/mg.c
+++ b/mg.c
@@ -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"
);
}