diff options
Diffstat (limited to 'pod/perl5004delta.pod')
-rw-r--r-- | pod/perl5004delta.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perl5004delta.pod b/pod/perl5004delta.pod index 85a8f96161..2ade235703 100644 --- a/pod/perl5004delta.pod +++ b/pod/perl5004delta.pod @@ -1489,7 +1489,7 @@ subroutine, and outside that is another subroutine; and the anonymous (innermost) subroutine is referencing a lexical variable defined in the outermost subroutine. For example: - sub outermost { my $a; sub middle { sub { $a } } } + sub outermost { my $x; sub middle { sub { $x } } } If the anonymous subroutine is called or referenced (directly or indirectly) from the outermost subroutine, it will share the variable |