Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^9: Indirect variable name

by LanX (Saint)
on Nov 22, 2008 at 00:30 UTC ( [id://725270]=note: print w/replies, xml ) Need Help??


in reply to Re^8: Indirect variable name
in thread Indirect variable name

> stressing incidentally that capitalization does matter.

well thats because I'm overcompensating my German instincts to capitalize every noun ... ; )

> I'd like someone who knows better to pinpoint the key elements of it, which we just surfaced here.

I don't "know" better, but my intuition is to think of a namespace as of a symboltable realized as a hash of symbols and values*. And a hash may contain references of other hashes.

when you said lexvars will be realized as kind of pkgvar, you actually meant both will consistently be organised in such symboltables.

with "our" and "my" you just bind the var-symbols of the code within the actual scope to such a symboltable.

you're declaring in which "hash" the value of a symbol "$x" should be hold.

hashes can be nested and they can have lexical scope ...

just my understanding...

Cheers Rolf

UPDATES:

* "realized" in the sense of the logic but not necessarily implementation.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725270]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found