diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-03-13 11:07:40 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-03-13 11:07:40 +0000 |
commit | 719b43e8a7892cfc854b9123fcad88c53828b0b9 (patch) | |
tree | 546e74c292fae1ff25581a9e37830e42276b01e8 /pod/perldata.pod | |
parent | 22469a62e89c5b688296aee74b9b68348ff12194 (diff) | |
download | perl-719b43e8a7892cfc854b9123fcad88c53828b0b9.tar.gz |
Doc patches to clarify the stringification rules of {} and =>
by Jarkko (bug #34419)
p4raw-id: //depot/perl@24033
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 5 |
1 files changed, 3 insertions, 2 deletions
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 |