X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldata.pod;h=d828d4aca761a0148d1dc361a82dcb51a583b8a5;hb=38cabd2daffcdb193c3134c3eb36b7ceaa4ca051;hp=254304cad985fcdc52ac1bfe58eb4e968d1be700;hpb=fa11829f4b6d56533794dd127f3d1068d9593670;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldata.pod b/pod/perldata.pod index 254304c..d828d4a 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -280,7 +280,7 @@ integer formats: 4_294_967_296 # underscore for legibility 0xff # hex 0xdead_beef # more hex - 0377 # octal + 0377 # octal (only numbers, begins with 0) 0b011011 # binary You are allowed to use underscores (underbars) in numeric literals @@ -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