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

Re: [ID 20000317.003] missing slice of reference

Thread Previous | Thread Next
Tom Christiansen
March 20, 2000 04:32
Re: [ID 20000317.003] missing slice of reference
Message ID:
>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?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About