diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-07-15 17:28:28 -0600 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-07-17 21:50:48 -0400 |
commit | f0a2b745ce6c03aec6412d79ce0b782f20eddce4 (patch) | |
tree | d1786b1a4a80f6b848dca1ab4eba6e3ffd5dc5d1 /pod/perlre.pod | |
parent | 8e4698ef1ed0da722532bfcc769ba22fe85c4b47 (diff) | |
download | perl-f0a2b745ce6c03aec6412d79ce0b782f20eddce4.tar.gz |
Add \o{} escape
This commit adds the new construct \o{} to express a character constant
by its octal ordinal value, along with ancillary tests and
documentation.
A function to handle this is added to util.c, and it is called from the
3 parsing places it could occur. The function is a candidate for
in-lining, though I doubt that it will ever be used frequently.
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 5ea15a013a..2e00f0bc69 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -229,11 +229,11 @@ also work: \f form feed (FF) \a alarm (bell) (BEL) \e escape (think troff) (ESC) - \033 octal char (example: ESC) \cK control char (example: VT) \x{}, \x00 character whose ordinal is the given hexadecimal number \N{name} named Unicode character \N{U+263D} Unicode character (example: FIRST QUARTER MOON) + \o{}, \000 character whose ordinal is the given octal number \l lowercase next char (think vi) \u uppercase next char (think vi) \L lowercase till \E (think vi) |