String Literals : String « String « Perl






String Literals

    
Escape Sequences    Descriptions (ASCII Name)
\t                  Tab
\n                  Newline
\r                  Carriage return
\f                  Form feed
\b                  Backspace
\a                  Alarm/bell
\e                  Escape
\033                Octal character
\xff                Hexadecimal character
\c[                 Control character
\l                  Next character is converted to lowercase
\u                  Next character is converted to uppercase
\L                  Next characters are converted to lowercase until \E is found
\U                  Next characters are converted to uppercase until \E is found
\Q                  Backslash all following nonalphanumeric characters until \E is found
\E                  Ends upper- or lowercase conversion started with \L or \U
\\                  Backslash

   
    
    
    
  








Related examples in the same category

1.String Operations
2.String Operators: the right and wrong ways to perform an equivalence check on a string:
3.String plus
4.String variable
5.Strings are normally delimited by a matched pair of either double or single quotes.
6.ASCII Character Codes
7.A string is a sequence of bytes (characters) enclosed in quotes.
8.Calculation on string
9.Use print to output string
10.Append two string value
11.Perl 5 String Functions
12.Using ~ operator to check if a scalar is a string type variable
13.String operators
14.String value reference