diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-04 07:59:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-04 07:59:05 +0000 |
commit | 423cee853811c26846bd1948939b85f9866dfb4a (patch) | |
tree | a1adb3cff6fd86474503248d2eba6747f0adeb02 /pod | |
parent | fd1e013efb606b51dc27fba846b1bedb38910a76 (diff) | |
download | perl-423cee853811c26846bd1948939b85f9866dfb4a.tar.gz |
Introduce the charnames pragma.
Subject: [PATCH 5.005_58] Free \C (for named chars), move to \O
From: Ilya Zakharevich <[9]ilya@math.ohio-state.edu>
To: Chip Salzenberg <[11]chip@perlsupport.com>
Cc: Mailing list Perl5 <[12]perl5-porters@perl.org>
Date: Sat, 31 Jul 1999 05:44:05 -0400
Message-Id: <[13]199907311407.IAA25042@localhost.frii.com>
From: Ilya Zakharevich <ilya@math.ohio-state.edu>
To: Mailing list Perl5 <perl5-porters@perl.org>
Subject: [PATCH 5.005_58] Named characters in Perl
Date: Mon, 2 Aug 1999 19:25:40 -0400
Message-ID: <19990802192540.B24407@monk.mps.ohio-state.edu>
p4raw-id: //depot/cfgperl@3916
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 15 | ||||
-rw-r--r-- | pod/perlop.pod | 4 | ||||
-rw-r--r-- | pod/perlre.pod | 6 |
3 files changed, 22 insertions, 3 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index bffd191174..2542838d83 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1130,6 +1130,16 @@ workarounds. inlining. See L<perlsub/"Constant Functions"> for commentary and workarounds. +=item constant(%s): %%^H is not localized + +(F) When setting compile-time-lexicalized hash %^H one should set the +corresponding bit of $^H as well. + +=item constant(%s): %s + +(F) Compile-time-substitutions (such as overloaded constants and +character names) were not correctly set up. + =item Copy method did not return a reference (F) The method which overloads "=" is buggy. See L<overload/Copy Constructor>. @@ -1662,6 +1672,11 @@ ended earlier on the current line. mentioned with the $ in Perl, unlike in the shells, where it can vary from one line to the next. +=item Missing %sbrace%s on \C{} + +(F) Wrong syntax of character name literal C<\C{charname}> within +double-quotish context. + =item Missing comma after first argument to %s function (F) While certain functions allow you to specify a filehandle or an diff --git a/pod/perlop.pod b/pod/perlop.pod index 3234131f90..bd4ca1df7d 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -673,6 +673,7 @@ a transliteration, the first eleven of these sequences may be used. \x1b hex char (ESC) \x{263a} wide hex char (SMILEY) \c[ control char (ESC) + \C{name} named char \l lowercase next char \u uppercase next char @@ -682,7 +683,8 @@ a transliteration, the first eleven of these sequences may be used. \Q quote non-word characters till \E If C<use locale> is in effect, the case map used by C<\l>, C<\L>, C<\u> -and C<\U> is taken from the current locale. See L<perllocale>. +and C<\U> is taken from the current locale. See L<perllocale>. For +documentation of C<\C{name}>, see L<charnames>. All systems use the virtual C<"\n"> to represent a line terminator, called a "newline". There is no such thing as an unvarying, physical diff --git a/pod/perlre.pod b/pod/perlre.pod index 6c05efc66f..85b2a949c2 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -149,6 +149,7 @@ also work: \x1B hex char \x{263a} wide hex char (Unicode SMILEY) \c[ control char + \C{name} named char \l lowercase next char (think vi) \u uppercase next char (think vi) \L lowercase till \E (think vi) @@ -157,7 +158,8 @@ also work: \Q quote (disable) pattern metacharacters till \E If C<use locale> is in effect, the case map used by C<\l>, C<\L>, C<\u> -and C<\U> is taken from the current locale. See L<perllocale>. +and C<\U> is taken from the current locale. See L<perllocale>. For +documentation of C<\C{name}>, see L<charnames>. You cannot include a literal C<$> or C<@> within a C<\Q> sequence. An unescaped C<$> or C<@> interpolates the corresponding variable, @@ -176,7 +178,7 @@ In addition, Perl defines the following: \PP Match non-P \X Match eXtended Unicode "combining character sequence", equivalent to C<(?:\PM\pM*)> - \C Match a single C char (octet) even under utf8. + \O Match a single C char (octet) even under utf8. A C<\w> matches a single alphanumeric character, not a whole word. Use C<\w+> to match a string of Perl-identifier characters (which isn't |