in reply to Re^6: Is a here-doc a good way to retrieve data file contents for testing? (updated)
in thread Is a here-doc a good way to retrieve data file contents for testing?

Edited: Scratch that. haukex has already mentioned this.
If you want your here-docs to be indented with the rest of the code, you'll need to remove leading whitespace from each line manually:

Well, that last sentence is no longer true as of Perl 5.26.

use 5.026; say <<~'END'; This adds a new modifier "~" to here-docs that tells the parser that it should look for /^\s*$DELIM\n/ as the closing delimiter. END
  • Comment on Re^7: Is a here-doc a good way to retrieve data file contents for testing? (updated)
  • Download Code