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
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
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
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
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
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
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 ;