This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Forbid setting $/ to a reference to a non-postive integer
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 1 Jun 2017 16:33:15 +0000 (17:33 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 5 Jun 2017 15:06:41 +0000 (16:06 +0100)
commit520b6fb6871d18601e1bb968982f92f68ad523f5
tree683f98ee12b928f043772e73fd3c4f91bbb13a76
parent8d37cdf70ae3493748b437390a3fa07a01fd07a9
Forbid setting $/ to a reference to a non-postive integer

This used to work like setting it to 'undef', but has been deprecated
since Perl 5.20.

In passing, avoid duplicate duplicate uninitialized warning by reusing
the SvIV() result already stored in 'val'.
mg.c
pod/perldelta.pod
pod/perldiag.pod
t/base/rs.t
t/lib/warnings/9uninit
t/lib/warnings/mg