develooper Front page | perl.perl5.porters | Postings from November 2021

Re: A 'permanent' keyword

Thread Previous | Thread Next
Dan Book
November 10, 2021 21:16
Re: A 'permanent' keyword
Message ID:
On Wed, Nov 10, 2021 at 4:07 PM Ovid <> wrote:

> > On Wednesday, 10 November 2021, 21:57:56 CET, Dan Book <>
> wrote:
> > Thanks for explaining, this is new terminology for me - unrelated to the
> concept of dynamic scope used in the > documentation (runtime scoping).
> >
> > Perhaps an addition to the documentation could be made, but this seems
> like expected behavior to me.
> Hmm, I didn't know the term "runtime scoping" was used. I just pulled the
> latest Perl from github and did a `git grep -i 'runtime scoping' and it
> returned no results.
> I made up the term "dynamic scoping" because I didn't know there was a
> term for it. I don't see anything in in the pod/ directory that matches
> this, either.
> I definitely think there's room for improvement in the docs, but I'm
> loathe to submit a patch to further confuse the documentation if there's
> already something there that I missed.

"dynamic scoping" is explained here: and referred
to in various places as "dynamic variables" which is a bit confusing in
itself, but perhaps accurate to how local actually works. Runtime scoping
is not a term used by the documentation, just my explanation of what it
means - the scope of the value/variable is defined by runtime behavior, not
only the structure of the program.


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