summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2012-05-14 09:01:06 -0400
committerRicardo Signes <rjbs@cpan.org>2012-05-29 21:51:41 -0400
commit34a2706e505e63c675528e3a99d1c07496c48606 (patch)
tree1b873702d0698e7884218fe8dcc61f7490ffa0fd
parentfb55feefe971ae1552e21360ba05c793b60fefd6 (diff)
downloadperl-34a2706e505e63c675528e3a99d1c07496c48606.tar.gz
clarify that it must be a simple identifier in {}
suggestion from Aristotle Pagaltzis in https://rt.perl.org/rt3/Ticket/Display.html?id=112914
-rw-r--r--pod/perldata.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index 8611d3d2b2..c89b6754be 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -355,8 +355,8 @@ C<$who::0>, and a C<$who's> variable. The last two would be the
$0 and the $s variables in the (presumably) non-existent package
C<who>.
-In fact, an identifier within such curlies is forced to be a string,
-as is any simple identifier within a hash subscript. Neither need
+In fact, a simple identifier within such curlies is forced to be
+a string, and likewise within a hash subscript. Neither need
quoting. Our earlier example, C<$days{'Feb'}> can be written as
C<$days{Feb}> and the quotes will be assumed automatically. But
anything more complicated in the subscript will be interpreted as an