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

Re: [perl #113974] package NAMESPACE manpage comments

Thread Previous | Thread Next
Eric Brine
July 6, 2012 08:26
Re: [perl #113974] package NAMESPACE manpage comments
Message ID:
On Fri, Jul 6, 2012 at 11:19 AM, Eric Brine <> wrote:

> You're also completely wrong about where and when it's created. A "my"
> variable is created at run-tine, and either cleared or recreated on scope
> *exit*.

oops, "run-tine" should be "compile-time"

To summarize:

scope: Where a variable is visible. Has nothing to do with allocation.
lexical scoping or static scoping: Scope known at compile-time. (e.g. my,
state, our)
dynamic scoping: Scoping varies at run-time. (e.g. local)

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