Hi,

(taken frrom Programming Perl)

__BEGIN__

The our declaration declares a lexically scoped name
for a global variable, which is not itself a lexical variable

__END__

The part about the variable not being lexical variable can be
checked by printing $main::var.

However, what do you mean by a lexically scoped name, and what's
the use of giving a lexically scoped name to a package variable.

I know that declaring a variable as 'our' won't give out compile
errors when use strict 'vars'; has been used.

So is this similarity between 'our' and 'my' declarations,
the criteria that is looked at when you use strict 'vars'

Other than this, is there any other reason for giving a
variable a lexically scoped name ???

George.


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

Reply via email to