summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE. Choroba <choroba@matfyz.cz>2021-03-22 15:37:44 +0100
committerKarl Williamson <khw@cpan.org>2021-04-16 17:23:23 -0600
commit35a7430ac2b6947e5c6e4f6a5abda7fe793b9012 (patch)
treef4846cba4c4a15c4ca4c8a300065d54e4afd817e
parentdcbafa45f5a97f7ad5f801e135d0aaa599ac751f (diff)
downloadperl-35a7430ac2b6947e5c6e4f6a5abda7fe793b9012.tar.gz
Document another case when the "not imported" warning is used
The minimal example: use strict; { our $x; } print $x;
-rw-r--r--pod/perldiag.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 98d159dc21..88df948505 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -7598,7 +7598,8 @@ being executed, so its $a is not available for capture.
that you apparently thought was imported from another module, because
something else of the same name (usually a subroutine) is exported by
that module. It usually means you put the wrong funny character on the
-front of your variable.
+front of your variable. It is also possible you used an "our" variable
+whose scope has ended.
=item Variable length lookbehind not implemented in regex m/%s/