Re: on Topic

2002-11-13 Thread Larry Wall
On Thu, Nov 14, 2002 at 04:28:17AM +0200, [EMAIL PROTECTED] wrote: : > : > : will it be an error to declare it as "our $_" ; : > : > No, in this case, $_ is still considered a lexical, but it just happens : > to be aliased to a variable in the current package. : > : : which variable ? i

Re: on Topic

2002-11-13 Thread fearcadi
Larry Wall writes: > Correct, $_ is always lexical. But... > > : or * will it be implicitely "my $_" -- class/package lexical > > There's no such thing as a "class/package lexical". I think you > mean file-scoped lexical here. ooo, now I understand : *scope* is orthogonal concept to cl

Re: on Topic

2002-11-13 Thread Larry Wall
On Wed, Nov 13, 2002 at 03:11:32PM +0200, [EMAIL PROTECTED] wrote: : so if I understand correctly , : : Every topicalizer defines a topicalizer scope in which there is : implicit declaration : : my $_ ; : : and then lexical $_ ( implicitely ) is bound to ( or assigned to ) : whatever it shoul

Re: on Topic

2002-11-13 Thread fearcadi
Me writes: > Sorta. To quote an excellent summary: > > "Topic is $_". > > > > > is $_ always lexical variable. > > Yes. > > > > Or I can have $MyPackage::_ ? > > You can copy or alias any value. > so if I understand correctly , Every topicalizer defines a top

Re: on Topic

2002-11-07 Thread Larry Wall
On Thu, Nov 07, 2002 at 01:36:07PM -0600, Me wrote: : > is *1* _all_ that topic is about ? : : Sorta. To quote an excellent summary: : : "Topic is $_". A "real" topicalizer also sets a topicalizer scope that can be broken out of. : > also : > : > @a := ( $a, $b) : : Er, I don't think

Re: on Topic

2002-11-07 Thread fearcadi
Me writes: > In the hope this saves Allison time, and/or > clarifies things for me, I'll attempt some > answers. > Thanks . > > In your article at perl.com you describes > > various ways and situations when perl > > creates a topic and this is described as > > perl making the following

Re: on Topic

2002-11-07 Thread Me
In the hope this saves Allison time, and/or clarifies things for me, I'll attempt some answers. > In your article at perl.com you describes > various ways and situations when perl > creates a topic and this is described as > perl making the following binding on my behalf: > > $_ := $some_var ;