Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Except for the comma operator and conditional expression, you can also use
these operators with the assignment operator, similar to the way addition (+)
can be combined with assignment (=), giving +=.


Special String Constants


Perl supports string constants that have special meaning or cannot be entered
from the keyboard.


Table 46.6 shows most of the constants supported by Perl.


Table 46.6 Perl Special String Constants


ExpressionMeaning

\ The   means   of  including   a   backslash

\a The  alert   or  bell    character

\b Backspace

\cC Control character   (like   holding the Ctrl    key down    and pressing
the C character)

\e Escape

\f Formfeed

\n Newline

\r Carriage return

\t Tab

\xNN Indicates  that    NN  is  a   hexadecimal number

\0NNN Indicates that    NNN is  an  octal   (base   8)  number

Conditional Statements: if/else and


unless

Free download pdf