From 719b43e8a7892cfc854b9123fcad88c53828b0b9 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Sun, 13 Mar 2005 11:07:40 +0000 Subject: Doc patches to clarify the stringification rules of {} and => by Jarkko (bug #34419) p4raw-id: //depot/perl@24033 --- pod/perldata.pod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pod/perldata.pod') diff --git a/pod/perldata.pod b/pod/perldata.pod index 254304cad9..1b02b1e192 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -336,8 +336,9 @@ In fact, an identifier within such curlies is forced to be a string, as is any simple identifier 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 expression. +anything more complicated in the subscript will be interpreted as an +expression. This means for example that C<$version{2.0}++> is +equivalent to C<$version{2}++>, not to C<$version{'2.0'}++>. =head3 Version Strings -- cgit v1.2.1