From 34a2706e505e63c675528e3a99d1c07496c48606 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Mon, 14 May 2012 09:01:06 -0400 Subject: [PATCH] clarify that it must be a simple identifier in {} suggestion from Aristotle Pagaltzis in https://rt.perl.org/rt3/Ticket/Display.html?id=112914 --- pod/perldata.pod | 4 ++-- 1 file 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. -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