Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: f8ed0a91515917f85c17206609b60adcb3b59fc4 https://github.com/Perl/perl5/commit/f8ed0a91515917f85c17206609b60adcb3b59fc4 Author: David Mitchell <da...@iabyn.com> Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths: M pod/perlsub.pod Log Message: ----------- update const sub docs for stuff that now croaks GH #19664 Some types of constant sub candidates emitted deprecation warnings from 5.22 onwards, and croaked from 5.32 onwards. The perlsub docs knew about the warnings; this commit updates them for the croaks. At the same time, change the code examples to no longer use the RT ticket number of the original issue. For one thing, RT numbers are obsolete, and for another, it was being too cute - setting a variable to one less than the RT number, then showing that the constant value hadn't been incremented by the $x++. And using the number for the sub names. The examples just became noisy with random 5-digit numbers everywhere.