diff options
author | Karl Williamson <khw@cpan.org> | 2015-04-16 10:22:14 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-04-18 20:38:39 -0600 |
commit | 15c526cb7d1cfe028631e7503100bb5c1ee2f822 (patch) | |
tree | 58bceee970007d55416707f014a91f4c272bf39e | |
parent | bb31ec6a1eb7cd00f550ba1077896967310d7262 (diff) | |
download | perl-15c526cb7d1cfe028631e7503100bb5c1ee2f822.tar.gz |
perlhack: Nits and update for v5.22
-rw-r--r-- | pod/perlhack.pod | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod index 23620a3eb2..46161efa11 100644 --- a/pod/perlhack.pod +++ b/pod/perlhack.pod @@ -389,7 +389,7 @@ should be at end-of-line otherwise =item * -In function definitions, name starts in column 0 (return value is on +In function definitions, name starts in column 0 (return value-type is on previous line) =item * @@ -749,7 +749,7 @@ Protocol|http://testanything.org>. =item * F<t/base>, F<t/comp> and F<t/opbasic> -Since we don't know if require works, or even subroutines, use ad hoc +Since we don't know if C<require> works, or even subroutines, use ad hoc tests for these three. Step carefully to avoid using the feature being tested. Tests in F<t/opbasic>, for instance, have been placed there rather than in F<t/op> because they test functionality which @@ -799,9 +799,11 @@ since C<"\xC2\xA0"> are the UTF-8 bytes on an ASCII platform for that code point. This function returns C<"\xC2\xA0"> on an ASCII platform, and C<"\x80\x41"> on an EBCDIC 1047 one. -But easiest is to use C<\N{}> to specify characters, if the side effects -aren't troublesome. Simply specify all your characters in hex, using -C<\N{U+ZZ}> instead of C<\xZZ>. C<\N{}> is the Unicode name, and so it +But easiest is, if the character is specifiable as a literal, like +C<"A"> or C<"%">, to use that; if not so specificable, you can use use +C<\N{}> , if the side effects aren't troublesome. Simply specify all +your characters in hex, using C<\N{U+ZZ}> instead of C<\xZZ>. C<\N{}> +is the Unicode name, and so it always gives you the Unicode character. C<\N{U+41}> is the character whose Unicode code point is C<0x41>, hence is C<'A'> on all platforms. The side effects are: @@ -825,6 +827,10 @@ you are doing. =back +If you are testing locales (see L<perllocale>), there are helper +functions in F<t/loc_tools.pl> to enable you to see what locales there +are on the current platform. + =head2 Special C<make test> targets There are various special make targets that can be used to test Perl @@ -1211,4 +1217,3 @@ metaphor, so being meta is, after all, what it's for. This document was originally written by Nathan Torkington, and is maintained by the perl5-porters mailing list. - |