--- Peter Cornelius <[EMAIL PROTECTED]> wrote:
> >It's also worth mentioning that if you 'use strict;' you can't
> declare
> >you're own symbol table variables so all of your user defined
> variables
> will
> >be lexically scoped.
>
> I need to correct myself. I said you can't declare symbol table
> variables
> if you 'use strict', that's wrong. 'my' declares lexical variables,
> 'our'
> declares package variables which have symbol table entries. 'use
> vars
> qw(...' also declares package variables.
>
And you can always just specify them by the fully qualified name
including the package. The following code works fine.
use strict;
$My::Var = 'foo';
print "$My::Var\n";
strict assumes that if you went to the trouble to specify the package
space, you must know what you're doing.
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/