diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-08 09:01:13 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-18 21:00:54 +0800 |
commit | 25676a74796a9afdbb6efe609bbfc7e223921fae (patch) | |
tree | 7fe10b9bf930bdb8a5abf5386efaa61548ed1d1e /pod | |
parent | 25991c51d4866aeef3eeef13c1dc562fff82d7e4 (diff) | |
download | perl-25676a74796a9afdbb6efe609bbfc7e223921fae.tar.gz |
warnings.pm - add deprecated::apostrophe_as_package_separator as new deprecation category
This category is about use of apostrophe as a package separator, eg
for things like "Test::More::isn't()".
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 96cf0f67d6..760d45548a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4684,18 +4684,19 @@ with real files). =item Old package separator "'" deprecated -(W deprecated, syntax) You used the old package separator "'" in a -variable, subroutine or package name. Support for the old package -separator will be removed in Perl 5.40. +(W deprecated::apostrophe_as_package_separator, syntax) You used the old package +separator "'" in a variable, subroutine or package name. Support for the +old package separator will be removed in Perl 5.42. =item Old package separator used in string -(W deprecated, syntax) You used the old package separator, "'", in a variable -named inside a double-quoted string; e.g., C<"In $name's house">. This -is equivalent to C<"In $name::s house">. If you meant the former, put -a backslash before the apostrophe (C<"In $name\'s house">). +(W deprecated::apostrophe_as_package_separator, syntax) You used the old package +separator, "'", in a variable named inside a double-quoted string; e.g., +C<"In $name's house">. This is equivalent to C<"In $name::s house">. If +you meant the former, put a backslash before the apostrophe +(C<"In $name\'s house">). -Support for the old package separator will be removed in Perl 5.40. +Support for the old package separator will be removed in Perl 5.42. =item Only scalar fields can take a :param attribute |