develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #113974] package NAMESPACE manpage comments

Thread Previous | Thread Next
Father Chrysostomos via RT
July 5, 2012 16:03
[perl #113974] package NAMESPACE manpage comments
Message ID:
On Thu Jul 05 15:44:55 2012, LAWalsh wrote:
>     I don't even like the word "discouraged" -- because too many people, 
> refer to
> "our" as package variables -- Which they ARE -- "sorta", BUT...they 
> continue on in the
> current scope even into other packages.
> So when you use an 'our' variable, it's not necessarily a package 
> variable of the current
> package!...

‘our’ could certainly be documented better.  Somewhere we need to state
it nice and clearly like this:

C<our> makes a lexical alias to a package variable.


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About