[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-unattended/var/se3/unattended/install/linuxaux/opt/perl/lib/5.10.0/pod/ -> perlfaq7.pod (summary)

(no description)

File Size: 1033 lines (35 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  adds()

Functions
Functions that are not part of a class:

adds(They can both access C<$count>, and since it has gone out of scope,there is no other way to access it.BEGIN {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 filecannot be seen from any other file.See L<perlsub/"Persistent Private Variables"> for more information.The discussion of closures in L<perlref> may help you even though wedid not use anonymous subroutines in this answer. SeeL<perlsub/"Persistent Private Variables"> for details.=head2 What's the difference between dynamic and lexical (static)   X-Ref
No description



Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1