summaryrefslogtreecommitdiff
path: root/pod/perlref.pod
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-06-02 11:19:54 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-03 08:04:25 +0000
commitb432a67249666bce4aa3385263660dc667d150d7 (patch)
treed7fccc07dbacb727f1e2d96499970be0b3682421 /pod/perlref.pod
parent3a205795a9fa8c21e484e9a8efe6e9257c24bd1e (diff)
downloadperl-b432a67249666bce4aa3385263660dc667d150d7.tar.gz
Quotes in pod/*.pod
Message-ID: <20050602211954.GA22107@petdance.com> p4raw-id: //depot/perl@24686
Diffstat (limited to 'pod/perlref.pod')
-rw-r--r--pod/perlref.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod
index 07b2f8272f..427fee7ab7 100644
--- a/pod/perlref.pod
+++ b/pod/perlref.pod
@@ -591,13 +591,13 @@ get to capture each time you execute the 'sub' operator. If you are
accustomed to using nested subroutines in other programming languages with
their own private variables, you'll have to work at it a bit in Perl. The
intuitive coding of this type of thing incurs mysterious warnings about
-``will not stay shared''. For example, this won't work:
+"will not stay shared". For example, this won't work:
sub outer {
my $x = $_[0] + 35;
sub inner { return $x * 19 } # WRONG
return $x + inner();
- }
+ }
A work-around is the following:
@@ -605,7 +605,7 @@ A work-around is the following:
my $x = $_[0] + 35;
local *inner = sub { return $x * 19 };
return $x + inner();
- }
+ }
Now inner() can only be called from within outer(), because of the
temporary assignments of the closure (anonymous subroutine). But when