diff options
author | Wolfgang Laun <Wolfgang.Laun@alcatel.at> | 2007-02-03 17:23:48 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-02-06 22:33:23 +0000 |
commit | ee9f418e9fe4517f9ee955619a6d69ab669060ac (patch) | |
tree | c50a2941bbe2ef1567b4ab91158a2ea07416091e /pod/perlop.pod | |
parent | 40ff300dec6feccc3604f666dbf63e5fa5916402 (diff) | |
download | perl-ee9f418e9fe4517f9ee955619a6d69ab669060ac.tar.gz |
perlop.pod - proposal to add an explanation of \c
From: "Wolfgang Laun" <wolfgang.laun@gmail.com>
Message-ID: <17de7ee80702030723m4265bbfkc83644d55a24aa0@mail.gmail.com>
p4raw-id: //depot/perl@30150
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r-- | pod/perlop.pod | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index 7b84a683ac..f4ee795eba 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -962,14 +962,22 @@ X<\t> X<\n> X<\r> X<\f> X<\b> X<\a> X<\e> X<\x> X<\0> X<\c> X<\N> \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. |