In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/848bab4facdb0e4d55df87ebb5078741d248bb2b?hp=4dd9551803b40a514a28062780b164fdfbb4ef59>
- Log ----------------------------------------------------------------- commit 848bab4facdb0e4d55df87ebb5078741d248bb2b Author: David Golden <dagol...@cpan.org> Date: Thu Jul 5 20:14:15 2012 -0400 perlfunc: clarify 'our' again for vars.pm behavior rjbs discovered that vars.pm docs lie and it works within a package, even across file scopes ----------------------------------------------------------------------- Summary of changes: pod/perlfunc.pod | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 2d73099..8e8bcca 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4279,8 +4279,8 @@ allocate storage for that name within the current scope. This means that when C<use strict 'vars'> is in effect, C<our> lets you use a package variable without qualifying it with the package name, but only within the lexical scope of the C<our> declaration. In this way, C<our> differs from -C<use vars>, which allows a the use of an unqualified name I<only> within the -affected package. +C<use vars>, which allows use of an unqualified name I<only> within the +affected package, but across scopes. If more than one value is listed, the list must be placed in parentheses. -- Perl5 Master Repository