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

Re: [ID 20000317.003] missing slice of reference

Tom Christiansen
March 18, 2000 08:49
Re: [ID 20000317.003] missing slice of reference
Message ID:
>> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About