summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-25 20:22:01 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-25 20:22:01 +0000
commit336337397a650655cf01ecfa4aab8aa7e70c42f4 (patch)
tree8adcada4f182bb8e26ad7b84779e4cbbfb3d3a95 /pod/perldelta.pod
parentd08ede9a86fc6f23c9d8f6a6b0ba2b5edd36ad0f (diff)
downloadperl-336337397a650655cf01ecfa4aab8aa7e70c42f4.tar.gz
produce redeclaration warning on C<our $foo; { our $foo; ... }>
p4raw-id: //depot/perl@4891
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r--pod/perldelta.pod20
1 files changed, 15 insertions, 5 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index b90db4cefd..11a35f47b8 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -1549,11 +1549,6 @@ A tutorial on managing class data for object modules.
=over 4
-=item "my sub" not yet implemented
-
-(F) Lexically scoped subroutines are not yet implemented. Don't try that
-yet.
-
=item "%s" variable %s masks earlier declaration in same %s
(W) A "my" or "our" variable has been redeclared in the current scope or statement,
@@ -1562,6 +1557,16 @@ always a typographical error. Note that the earlier variable will still exist
until the end of the scope or until all closure referents to it are
destroyed.
+=item "my sub" not yet implemented
+
+(F) Lexically scoped subroutines are not yet implemented. Don't try that
+yet.
+
+=item "our" variable %s redeclared
+
+(W) You seem to have already declared the same global once before in the
+current lexical scope.
+
=item '!' allowed only after types %s
(F) The '!' is allowed in pack() and unpack() only after certain types.
@@ -1802,6 +1807,11 @@ just use C<if (%hash) { # not empty }> for example.
See Server error.
+=item Did you mean "local" instead of "our"?
+
+(W) Remember that "our" does not localize the declared global variable.
+You have declared it again in the same lexical scope, which seems superfluous.
+
=item Document contains no data
See Server error.