Created
August 5, 2020 01:25
-
-
Save PatrickCronin/d49350ec62cdb7d432988ab1df28d9ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @vals = (<<'SQL', 1); | |
SELECT * | |
FROM the_table | |
WHERE id=$1 | |
SQL | |
my @vals = (<<~'SQL', 1); | |
SELECT * | |
FROM the_table | |
WHERE id=$1 | |
SQL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The second statement is the indented heredoc. It has the
<<~
introductory terminator (as opposed to just<<
), and whitespace before the end terminator.