summaryrefslogtreecommitdiff
path: root/lib/vars.pm
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-07-10 23:22:48 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-07-10 23:22:48 +0000
commitc6f23971087b60e76ee381271f91c188d85e1db7 (patch)
treec89d139ccbd862aaf9bee4a15dc532f03069afcb /lib/vars.pm
parent4a2eeee972073f14f452b0d672c9d9c9ad2d6463 (diff)
downloadperl-c6f23971087b60e76ee381271f91c188d85e1db7.tar.gz
Add explanation of common usage
Diffstat (limited to 'lib/vars.pm')
-rw-r--r--lib/vars.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vars.pm b/lib/vars.pm
index b9519291c4..0dd5758297 100644
--- a/lib/vars.pm
+++ b/lib/vars.pm
@@ -14,6 +14,13 @@ This will predeclare all the variables whose names are
in the list, allowing you to use them under "use strict", and
disabling any typo warnings.
+Packages such as the B<AutoLoader> and B<SelfLoader> that delay loading
+of subroutines within packages can create problems with package lexicals
+defined using C<my()>. While the B<vars> pragma cannot duplicate the
+effect of package lexicals (total transparency outside of the package),
+it can act as an acceptable substitute by pre-declaring global symbols,
+ensuring their availability to to the later-loaded routines.
+
See L<perlmod/Pragmatic Modules>.
=cut