|Perl Language Reference Manual|
by Larry Wall and others
Paperback (6"x9"), 724 pages
RRP £29.95 ($39.95)
Sales of this book support The Perl Foundation! Get a printed copy>>>
A number of backslash sequences have to do with changing the character,
or characters following them.
\l will lowercase the character following
\u will uppercase (or, more accurately, titlecase) the
character following it. (They perform similar functionality as the
To uppercase or lowercase several characters, one might want to use
\U, which will lowercase/uppercase all characters following
them, until either the end of the pattern, or the next occurrence of
\E, whatever comes first. They perform similar functionality as the
\Q is used to escape all characters following, up to the next
or the end of the pattern.
\Q adds a backslash to any character that
isn't a letter, digit or underscore. This will ensure that any character
\E is matched literally, and will not be interpreted
by the regexp engine.
Mnemonic: Lowercase, Uppercase, Quotemeta, End.
|ISBN 9781906966027||Perl Language Reference Manual||See the print edition|