summaryrefslogtreecommitdiff
path: root/pod/perldata.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-06 22:23:56 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-06 22:23:56 +0000
commit695ff5bd5c58ec45a757946fd60f1420702ba4b6 (patch)
tree05de4f362b2e32c79e3b319efbea1f7703ce9925 /pod/perldata.pod
parent70dff5ba10e4ca7812cb86fd78f4732ba93c86d9 (diff)
downloadperl-695ff5bd5c58ec45a757946fd60f1420702ba4b6.tar.gz
Clarify that => doesn't quote compound identifiers.
p4raw-id: //depot/perl@19698
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r--pod/perldata.pod5
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index f60d016fbf..0191a932a5 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,