in reply to 'Here Documents' and unrecognized escapes
A heredoc is "just" a string - see perlop on strings.
In strings, the backslash is the universal escape - if you are using backslashes in your string, you have to double them.
In your case, I would recommend to simply change the backslashes to forward slashes instead.
As an alternative, I would store the templates in separate files instead of inlining them into the program.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'Here Documents' and unrecognized escapes
by AnomalousMonk (Archbishop) on May 04, 2014 at 11:15 UTC |