Perl: Here-Doc String
Here-Doc String is a syntax useful for quoting multiple lines of long string.
There are two syntax:
- Intepreted (aka Interpolated)
Start the quote by on a newline:
end the quote by the same random_letters on a line by itself:
$ss = 9; $xx = <<bbBvg; i have $ss cats, and something. bbBvg print $xx __DATA__ prints i have 9 cats, and something.
Syntax of Literal Here-Doc is similar to the interpolated syntax, except you start the quote by
$ss = 9; $xx = <<'frrTy'; i have $ss cats, and something. frrTy print $xx __DATA__ prints i have $ss cats, and something.