develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #85150] each on an anonymous array constructor doesn'tcomplain, but sorta works

Thread Previous | Thread Next
From:
Eric Brine
Date:
January 3, 2012 16:18
Subject:
Re: [perl #85150] each on an anonymous array constructor doesn'tcomplain, but sorta works
Message ID:
CALJW-qFE3tdgGajcVix+yUvAJ-k-8Ejo95wMEJvAQNCLvA8z7A@mail.gmail.com
On Tue, Jan 3, 2012 at 6:22 PM, Ricardo Signes <perl.p5p@rjbs.manxome.org>wrote:

> * Eric Brine <ikegami@adaelis.com> [2012-01-03T17:10:52]
> > Noone said "named variable". We were talking of VAR.
>
> perlfunc uses EXPR, LIST, VAR, VARIABLE, SOCKET, and so on.  There's an
> explanation of explanation of LIST, but nothing else.  If we're going to
> get
> picky about exact terminology, maybe the terminology should be better
> explained.  I don't see anything anywhere to help with this.  Am I missing
> it?
>

Yes, my reply didn't make much sense.

Basically, I didn't want to guess what he meant by named variables, since
he claimed there were named variable where there clearly weren't. Neither a
deref or a sub call are named variable.

And anything that starts with @ or % is considered a named variable (at
least when prototypes and pre-5.14 C<each> are concerned), so yes, there is
a named variable in the last example I gave.

As a Father C pointed out, the correct check relates to TEMP and REFCNT,
not "named".

- Eric


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