On Mon, Nov 25, 2002 at 02:27:36PM -0800, Randal L. Schwartz wrote:
: >>>>> "Simon" == Simon Cozens <[EMAIL PROTECTED]> writes:
: 
: Simon> What were the good reasons for not allowing localized lexicals in Perl 5?
: 
: Nobody could explain it in 50 words or less.
: 
: "What the hell is 'local my $foo = 35'?"

That particular form is useless, since the scope of the temporization
is the same as the scope of the lexical.  But there's no reason
not to be able to temporize a file-scoped lexical, for instance,
so that it behaves as a global to all the subs in the current file,
but is invisible outside the file.

Well, hey, that's close to 50 words.  :-)

Larry

Reply via email to