diff options
Diffstat (limited to 'lib/vars.pm')
-rw-r--r-- | lib/vars.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/vars.pm b/lib/vars.pm index 0b7dacc751..e007baa7b9 100644 --- a/lib/vars.pm +++ b/lib/vars.pm @@ -19,12 +19,13 @@ C<use subs> declarations are not BLOCK-scoped. They are thus effective for the entire file in which they appear. You may not rescind such declarations with C<no vars> or C<no subs>. -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. +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 the +later-loaded routines. See L<perlmod/Pragmatic Modules>. |