develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000324.062] Perl Functions by Category missing `our' entry

Thread Previous
From:
simon
Date:
March 24, 2000 23:40
Subject:
Re: [ID 20000324.062] Perl Functions by Category missing `our' entry
Message ID:
slrn8dor8r.h1g.simon@othersideofthe.earth.li
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.

--- 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<caller>, C<import>, C<local>, C<my>, C<package>, C<use>
+C<caller>, C<import>, C<local>, C<my>, C<our>, C<package>, C<use>
 
 =item Miscellaneous functions
 
-C<defined>, C<dump>, C<eval>, C<formline>, C<local>, C<my>, C<reset>,
+C<defined>, C<dump>, C<eval>, C<formline>, C<local>, C<my>, C<our>, C<reset>,
 C<scalar>, C<undef>, C<wantarray>
 
 =item Functions for processes and process groups
@@ -200,8 +200,8 @@
 =item Functions new in perl5
 
 C<abs>, C<bless>, C<chomp>, C<chr>, C<exists>, C<formline>, C<glob>,
-C<import>, C<lc>, C<lcfirst>, C<map>, C<my>, C<no>, C<prototype>, C<qx>,
-C<qw>, C<readline>, C<readpipe>, C<ref>, C<sub*>, C<sysopen>, C<tie>,
+C<import>, C<lc>, C<lcfirst>, C<map>, C<my>, C<no>, C<our>, C<prototype>, 
+C<qx>, C<qw>, C<readline>, C<readpipe>, C<ref>, C<sub*>, C<sysopen>, C<tie>,
 C<tied>, C<uc>, C<ucfirst>, C<untie>, C<use>
 
 * - C<sub> was a keyword in perl4, but in perl5 it is an

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

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About