in reply to Re: Re: Perl Programming guidlines/rules
in thread Perl Programming guidelines/rules

. . . those are not globals, by the way . . .

OK, fine, in Perl, there technically aren't any global vars. There is just vars that have a really wide scope. However, for practical matters, widely scoped lexicals are global vars.

  • Comment on Re: Re: Re: Perl Programming guidlines/rules

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl Programming guidlines/rules
by perrin (Chancellor) on Nov 22, 2002 at 02:12 UTC
    Not really. "Global variable" means something specific in Perl: a variable like $SomePackagage::Foo or just $Foo that is declared without "my". They are global because any other package can see them and change them. Lexical (my) variables are not visible outside of their current scope. It's a significant difference.