From 25676a74796a9afdbb6efe609bbfc7e223921fae Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 8 Mar 2023 09:01:13 +0100 Subject: 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()". --- pod/perldiag.pod | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'pod') 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 -- cgit v1.2.1