Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Of Symbol Tables and Globs

by demerphq (Chancellor)
on Nov 08, 2002 at 20:00 UTC ( #211520=note: print w/ replies, xml ) Need Help??


in reply to Re: Of Symbol Tables and Globs
in thread Of Symbol Tables and Globs

I think package global is a much better description than dynamic.

I think neither is that good. Package global implies that it is only global to the package. Dynamic is probably the better term, problem is that almost nobody will know what it means until they've learned enough perl to not care what term is used.

I agree with your point about the assigning directly.

--- demerphq
my friends call me, usually because I'm late....


Comment on Re: Re: Of Symbol Tables and Globs
Re: Re: Re: Of Symbol Tables and Globs
by theorbtwo (Prior) on Nov 08, 2002 at 21:19 UTC

    I think saying "lexical (my), and dynamic (use vars, our (with caveats), undeclared (except under use strict), all subs, direct playing with globs (see below), filehandles/dirhandles, and formats)" would do the trick. You might just want to say "(all others)" instead of listing all of those.

    Also, more importantly, you've got a terminology mismatch in the whole document: symbol tables aren't like hashes, they are hashes. %main:: (AKA %::, which you might want to mention explicitly) is a hash. *main::{somevar} isn't a hash, it's a hash element, which contains a glob, which is like a hash in many ways.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      Also, more importantly, you've got a terminology mismatch in the whole document: symbol tables aren't like hashes, they are hashes.
      They are accessed like hashes, but they are not hashes. It could perhaps be said that hashes are not symbol tables but symbol tables can be treated exactly like hashes except they can only store globs and have various sorts of magical behaviour associated. But that's a little confusing and long-winded.
      %main:: (AKA %::, which you might want to mention explicitly)
      I'll see if I can slip it in there somewhere :)

      Thanks for the input!

      _________
      broquaint

        I sit corrected, in my expensive wheelychair that shows up in TV shows, but that I got cheaply because it was missing a lumbar support pillow, and the co. was going out of busniess. (Yes, that sentance rambled on for no relevant reason, just like this one.) However, it seems in several places, IIRC, that you're calling both symbol tables and globs "like hashes, but not". (I still think, actualy, that symbol tables are magic hashes, and not another sort of entity, but I'll need to doublecheck in the source, which isn't handy.)


        Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2014-08-22 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (161 votes), past polls