develooper Front page | perl.perl5.porters | Postings from October 2016

Re: Extend the fat comma to deal with undef

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
October 7, 2016 01:06
Subject:
Re: Extend the fat comma to deal with undef
Message ID:
20161007010559.9063.qmail@lists-nntp.develooper.com
Tony Cook wrote:
> => only differs from the comma operator in that it quotes identifiers
> given as its left argument.

More precisely (or pedantically), it quotes an identifier immediately
preceding it.  In the case of "foo".bar=>"baz", bar is not the argu-
ment to the fat arrow (rather, "foo".bar is), yet bar still gets
quoted.  This is what allows -tk=> to work.


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