Skip to content

Commit 8c6bc2c

Browse files
committed
clarify the comparison between 'our' and 'use vars'
Fixes GH #22424
1 parent 77b7888 commit 8c6bc2c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pod/perlfunc.pod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5395,9 +5395,10 @@ values:
53955395

53965396
our ( undef, $min, $hour ) = localtime;
53975397

5398-
L<C<our>|/our VARLIST> differs from L<C<use vars>|vars>, which allows
5399-
use of an unqualified name I<only> within the affected package, but
5400-
across scopes.
5398+
L<C<our>|/our VARLIST> creates a lexically scoped alias to the package
5399+
variable of the same name, and as such differs from L<C<use vars>|vars>,
5400+
which allows use of an unqualified name I<only> within the affected
5401+
package, without consideration for scopes.
54015402

54025403
=item pack TEMPLATE,LIST
54035404
X<pack>

0 commit comments

Comments
 (0)