- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

11.2.3 Escape sequences

Because patterns are processed as double quoted strings, the following also work:

\t tab (HT, TAB)
\n newline (LF, NL)
\r return (CR)
\f form feed (FF)
\a alarm (bell) (BEL)
\e escape (think troff) (ESC)
\033 octal char (example: ESC)
\x1B hex char (example: ESC)
\x{263a} long hex char (example: Unicode SMILEY)
\cK control char (example: VT)
\N{name} named Unicode character
\N{U+263D} Unicode character (FIRST QUARTER MOON)
\l lowercase next char (think vi)
\u uppercase next char (think vi)
\L lowercase till \E (think vi)
\U uppercase till \E (think vi)
\E end case modification (think vi)
\Q quote (disable) pattern
metacharacters till \E
If use locale is in effect, the case map used by \l, \L, \u and \U is taken from the current locale. See "Perl locale handling (internationalization and localization)" (perllocale) in the Perl Unicode and Locales Manual. For documentation of \N{name}, see "Define character names for \N{named} string literal escapes" (charnames) in the Perl Library Reference Manual (Volume 1). You cannot include a literal $ or @ within a \Q sequence. An unescaped $ or @ interpolates the corresponding variable, while escaping will cause the literal string \$ to be matched. You'll need to write something like m/\Quser\E\@\Qhost/.
ISBN 9781906966027Perl Language Reference ManualSee the print edition