This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlhacktips: Note existence of regen/unicode_constants.pl
authorKarl Williamson <public@khwilliamson.com>
Sat, 23 Feb 2013 02:04:25 +0000 (19:04 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 24 Feb 2013 19:23:05 +0000 (12:23 -0700)
pod/perlhacktips.pod

index 3880e17..324ed1a 100644 (file)
@@ -277,11 +277,9 @@ This is transparent for the most part, but because the character sets
 differ, you shouldn't use numeric (decimal, octal, nor hex) constants
 to refer to characters. You can safely say 'A', but not 0x41. You can
 safely say '\n', but not \012. If a character doesn't have a trivial
-input form, you can create a #define for it in both C<utfebcdic.h> and
-C<utf8.h>, so that it resolves to different values depending on the
-character set being used. (There are three different EBCDIC character
-sets defined in C<utfebcdic.h>, so it might be best to insert the
-#define three times in that file.)
+input form, you should add it to the list in
+F<regen/unicode_constants.pl>, and have Perl create #defines for you,
+based on the current platform.
 
 Also, the range 'A' - 'Z' in ASCII is an unbroken sequence of 26 upper
 case alphabetic characters. That is not true in EBCDIC. Nor for 'a' to