develooper Front page | perl.perl6.language | Postings from November 2002

Re: on Topic

Thread Previous | Thread Next
From:
Larry Wall
Date:
November 7, 2002 14:56
Subject:
Re: on Topic
Message ID:
20021107225634.GB18496@wall.org
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 (it makes sense that) you
: can bind to a literal.

Well, it makes as much sense as binding it in a function parameter.  In this
case it'd be equivalent to

    @a :=  [ $a, $b ]

That is, it's bound to a temporary.

: > $b := $c 
: > @a[1] = 10 ; 
: > print $c # prints 10 

No, the [...] copies values upon composing the anonymous array.

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About