From: Rafael Garcia-Suarez Date: Fri, 3 Jun 2005 07:59:48 +0000 (+0000) Subject: Indent fix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a205795a9fa8c21e484e9a8efe6e9257c24bd1e;p=p5sagit%2Fp5-mst-13.2.git Indent fix p4raw-id: //depot/perl@24685 --- diff --git a/pod/perlfaq7.pod b/pod/perlfaq7.pod index ac9b31f..b9548fb 100644 --- a/pod/perlfaq7.pod +++ b/pod/perlfaq7.pod @@ -431,16 +431,16 @@ can access the value (and each time you do, you increment the value). The data in chunk of memory defined by C<$count> is private to C. - BEGIN { - my $count = 1; - sub counter { $count++ } - } + BEGIN { + my $count = 1; + sub counter { $count++ } + } - my $start = count(); + my $start = count(); - .... # code that calls count(); + .... # code that calls count(); - my $end = count(); + my $end = count(); In the previous example, you created a function-private variable because only one function remembered its reference. You could define @@ -457,7 +457,7 @@ there is no other way to access it. my $count = 1; sub increment_count { $count++ } sub return_count { $count } - } + } To declare a file-private variable, you still use a lexical variable. A file is also a scope, so a lexical variable defined in the file