Change 30150 by [EMAIL PROTECTED] on 2007/02/06 22:33:23

        Subject: [PATCH] perlop.pod - proposal to add an explanation of \c
        From: "Wolfgang Laun" <[EMAIL PROTECTED]>
        Date: Sat, 3 Feb 2007 16:23:48 +0100
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlop.pod#160 edit

Differences ...

==== //depot/perl/pod/perlop.pod#160 (text) ====
Index: perl/pod/perlop.pod
--- perl/pod/perlop.pod#159~29831~      2007-01-15 08:26:17.000000000 -0800
+++ perl/pod/perlop.pod 2007-02-06 14:33:23.000000000 -0800
@@ -962,14 +962,22 @@
     \b         backspace       (BS)
     \a         alarm (bell)    (BEL)
     \e         escape          (ESC)
-    \033       octal char      (ESC)
-    \x1b       hex char        (ESC)
-    \x{263a}   wide hex char   (SMILEY)
-    \c[                control char    (ESC)
+    \033       octal char      (example: ESC)
+    \x1b       hex char        (example: ESC)
+    \x{263a}   wide hex char   (example: SMILEY)
+    \c[                control char    (example: ESC)
     \N{name}   named Unicode character
 
+The character following C<\c> is mapped to some other character by
+converting letters to upper case and then (on ASCII systems) by inverting
+the 7th bit (0x40). The most interesting range is from '@' to '_'
+(0x40 through 0x5F), resulting in a control character from 0x00
+through 0x1F. A '?' maps to the DEL character. On EBCDIC systems only
+'@', the letters, '[', '\', ']', '^', '_' and '?' will work, resulting
+in 0x00 through 0x1F and 0x7F.
+
 B<NOTE>: Unlike C and other languages, Perl has no \v escape sequence for
-the vertical tab (VT - ASCII 11).
+the vertical tab (VT - ASCII 11), but you may use C<\ck> or C<\x0b>.
 
 The following escape sequences are available in constructs that interpolate
 but not in transliterations.
End of Patch.

Reply via email to