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

Re: [ID 20000317.003] missing slice of reference

From:
Tom Christiansen
Date:
March 18, 2000 08:49
Subject:
Re: [ID 20000317.003] missing slice of reference
Message ID:
8883.953398133@chthon
>> Even: print scalar(@cast)->{age}->{name}; \N{GREAT QUESTIONMARK}

>The -> operator already puts its left hand operand in scalar context

Yes, it is redundant in that it makes no difference.  However, it
is a bug that the allegedly scalar context LHS of the arrow does
not produce what what scalar(that LHS) would otherwise produce.

--tom



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