develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000317.003] missing slice of reference

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
March 20, 2000 04:32
Subject:
Re: [ID 20000317.003] missing slice of reference
Message ID:
12296.953555570@chthon
>v)   @x->[2] and scalar(@x)->[2] shouldn't be lumped together.   As
>     discussed on p5p long ago (pre 5.004 ?), what @x->[2] does is
>     deliberate, if unfortunate.    Whereas having scalar(@x)
>     evaluate to anything other than the length of @x is a bug.

So, you're saying that it is desirable that @x act one way in 
an implicit scalar context and another way in an explicit one?

--tom

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