summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorLarry Wall <larry@wall.org>1998-06-22 01:55:09 -0700
committerGurusamy Sarathy <gsar@cpan.org>1998-07-04 00:33:37 +0000
commit85b81015bdcfa6e7a9ccddddb0d3face7465f666 (patch)
treec8168df0a5b1e39f7384350a44cbb4527c222a25 /pod
parenteacd03c1d97275b2758afcdbb834e028f5a3b9d8 (diff)
downloadperl-85b81015bdcfa6e7a9ccddddb0d3face7465f666.tar.gz
deprecate use of reserved word "our" (Larry's idea)
Message-Id: <199806221555.IAA07212@wall.org> Subject: Re: our p4raw-id: //depot/perl@1276
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod9
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 841be546a6..468e0a341f 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -2747,6 +2747,15 @@ In code that currently says C<use AutoLoader; @ISA = qw(AutoLoader);> you
should remove AutoLoader from @ISA and change C<use AutoLoader;> to
C<use AutoLoader 'AUTOLOAD';>.
+=item Use of reserved word "%s" is deprecated
+
+(D) The indicated bareword is a reserved word. Future versions of perl
+may use it as a keyword, so you're better off either explicitly quoting
+the word in a manner appropriate for its context of use, or using a
+different name altogether. The warning can be suppressed for subroutine
+names by either adding a C<&> prefix, or using a package qualifier,
+e.g. C<&our()>, or C<Foo::our()>.
+
=item Use of %s is deprecated
(D) The construct indicated is no longer recommended for use, generally