diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vars.pm | 7 |
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 |