From: Rafael Garcia-Suarez Date: Fri, 6 Jun 2003 22:23:56 +0000 (+0000) Subject: Clarify that => doesn't quote compound identifiers. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=695ff5bd5c58ec45a757946fd60f1420702ba4b6;p=p5sagit%2Fp5-mst-13.2.git Clarify that => doesn't quote compound identifiers. p4raw-id: //depot/perl@19698 --- diff --git a/pod/perldata.pod b/pod/perldata.pod index f60d016..0191a93 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -587,8 +587,9 @@ key/value pairs. That's why it's good to use references sometimes. It is often more readable to use the C<< => >> operator between key/value pairs. The C<< => >> operator is mostly just a more visually distinctive synonym for a comma, but it also arranges for its left-hand operand to be -interpreted as a string--if it's a bareword that would be a legal identifier. -This makes it nice for initializing hashes: +interpreted as a string -- if it's a bareword that would be a legal simple +identifier (C<< => >> doesn't quote compound identifiers, that contain +double colons). This makes it nice for initializing hashes: %map = ( red => 0x00f,