on Sat, 11 May 2002 17:00:27 GMT, Jonathan e. paton wrote:

> Note that 'use vars' is supposedly depreciated, so don't
> use it if your script depends on 5.6 features.  Placing
> 'our' in a lexical scope probably makes it externally
> visible until you leave the scope, 'use vars' imports
> into your symbol table.  Hope this is right :)

That's not how I see it.

Both 'use vars' and 'our' are used to keep "use strict 'vars'" happy, by 
declaring a global variable and allowing one to use it without specifying 
the full package name. 
The difference is that 'use vars' is not lexically scoped and affects the 
entire package, whereas 'our' takes the same scoping rules as 'my', but in 
contrast with 'my', refers to the same global variable.

As far as I understand it, this has nothing to do with importing in the 
symbol table.

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to