Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.97k stars 560 forks source link

Perl Functions by Category missing `our' entry #1497

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#2709 (status was 'resolved')

Searchable as RT2709$

p5pRT commented 24 years ago

From Hanson_family@iname.com

New `our' keyword seems useful but cryptic. Please consider adding it to `Perl Functions by Category' in perlfunc. I nominate it for the scoping\, miscellaneous\, and new in perl 5.x lists.

p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

Peter Hanson (lists.p5p)​:

New `our' keyword seems useful but cryptic.

Bah\, it's a lexically-scoped "use vars". What could be... uh\, simpler?

Please consider adding it to `Perl Functions by Category' in perlfunc. I nominate it for the scoping\, miscellaneous\, and new in perl 5.x lists.

Thanks for spotting that; this patch does just that.

Inline Patch ```diff --- perlfunc.pod~ Sat Mar 25 16:36:07 2000 +++ perlfunc.pod Sat Mar 25 16:37:26 2000 @@ -146,11 +146,11 @@ =item Keywords related to scoping -C, C, C, C, C, C +C, C, C, C, C, C, C =item Miscellaneous functions -C, C, C, C, C, C, C, +C, C, C, C, C, C, C, C, C, C, C =item Functions for processes and process groups @@ -200,8 +200,8 @@ =item Functions new in perl5 C, C, C, C, C, C, C, -C, C, C, C, C, C, C, C, -C, C, C, C, C, C, C, +C, C, C, C, C, C, C, C, +C, C, C, C, C, C, C, C, C, C, C, C, C * - C was a keyword in perl4, but in perl5 it is an -- ```

COBOL is for morons.   -- E.W. Dijkstra