X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldata.pod;h=8f0feb7fed30af288008c54d9e9752ead6c38f84;hb=05b4f1ece255de95efcc5a4c74e28b5d04f54401;hp=c960a0e2275a0694bfc42b792eee842be6c3e1fc;hpb=2575c402a8f9be55f848bdfb219afbf912c50ac1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldata.pod b/pod/perldata.pod index c960a0e..8f0feb7 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -390,10 +390,9 @@ more dots in the literal, the leading C may be omitted. print 102.111.111; # same Such literals are accepted by both C and C for -doing a version check. The C<$^V> special variable also contains the -running Perl interpreter's version in this form. See L. -Note that using the v-strings for IPv4 addresses is not portable unless -you also use the inet_aton()/inet_ntoa() routines of the Socket package. +doing a version check. Note that using the v-strings for IPv4 +addresses is not portable unless you also use the +inet_aton()/inet_ntoa() routines of the Socket package. Note that since Perl 5.8.1 the single-number v-strings (like C) are not v-strings before the C<< => >> operator (which is usually used @@ -419,13 +418,13 @@ The two control characters ^D and ^Z, and the tokens __END__ and __DATA__ may be used to indicate the logical end of the script before the actual end of file. Any following text is ignored. -Text after __DATA__ but may be read via the filehandle C, +Text after __DATA__ may be read via the filehandle C, where C is the package that was current when the __DATA__ token was encountered. The filehandle is left open pointing to the contents after __DATA__. It is the program's responsibility to C when it is done reading from it. For compatibility with older scripts written before __DATA__ was introduced, __END__ behaves -like __DATA__ in the toplevel script (but not in files loaded with +like __DATA__ in the top level script (but not in files loaded with C or C) and leaves the remaining contents of the file accessible via C. @@ -443,8 +442,11 @@ be treated as if it were a quoted string. These are known as "barewords". As with filehandles and labels, a bareword that consists entirely of lowercase letters risks conflict with future reserved words, and if you use the C pragma or the B<-w> switch, -Perl will warn you about any -such words. Some people may wish to outlaw barewords entirely. If you +Perl will warn you about any such words. Perl limits barewords (like +identifiers) to about 250 characters. Future versions of Perl are likely +to eliminate these arbitrary limitations. + +Some people may wish to outlaw barewords entirely. If you say use strict 'subs'; @@ -675,7 +677,7 @@ name of the array (without the leading C<@>), then the subscript inside square brackets. For example: @myarray = (5, 50, 500, 5000); - print "Element Number 2 is", $myarray[2], "\n"; + print "The Third Element is", $myarray[2], "\n"; The array indices start with 0. A negative subscript retrieves its value from the end. In our example, C<$myarray[-1]> would have been