in reply to Is it a pragma or a module?

You can't. Sometimes, you can't even tell by reading the docs! There's a couple of signs, however.

Based on the last two points, you'll be almost guaranteed to be correct if you simply check the module name against the list of core modules that are pragmas.

Update: My post and the list Mutant posted discuss lexically scoped pragmas. The list I posted above define the term "pragma" more loosely. I'm not sure which one you want.

Replies are listed 'Best First'.
Re^2: Is it a pragma or a module?
by throop (Chaplain) on Dec 14, 2006 at 22:48 UTC
    >I'm not sure which [list] you wanted
    Probably the list you posted. It's a question of what the user will want to see — why does anybody want to see a graphic map of the dependencies between a bunch of modules, anyways? Usually, to answer the question "If I muck around with this module, what else gets broken?" Hardly anybody is going to be changing the strict or warnings code. A bunch of map lines showing that all the modules depend on them is unhelpful. So I want to be able to exclude (at least as a default) all the modules that people are unlikely to be mucking with. Pretty much everything in your 'looser' def of pragma fills that bill.

    thanks,
    throop