cvs commit: perlfaq perlfaq7.pod
[email protected] (brian d foy) 28 Oct 2005 17:38:32 -0000
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 05/10/28 10:38:32 Modified: . perlfaq7.pod Log: * added missing word Revision Changes Path 1.27 +2 -2 perlfaq/perlfaq7.pod Index: perlfaq7.pod =================================================================== RCS file: /cvs/public/perlfaq/perlfaq7.pod,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- perlfaq7.pod 13 Oct 2005 19:43:13 -0000 1.26 +++ perlfaq7.pod 28 Oct 2005 17:38:32 -0000 1.27 @@ -434,7 +434,7 @@ with lexical variables, though. You can fake a static variable by using a lexical variable which goes -of scope. In this example, you define the subroutine C<counter>, and +out of scope. In this example, you define the subroutine C<counter>, and it uses the lexical variable C<$count>. Since you wrap this in a BEGIN block, C<$count> is defined at compile-time, but also goes out of scope at the end of the BEGIN block. The BEGIN block also ensures that