http://qs321.pair.com?node_id=943927


in reply to Re^3: Quote and Quote-like Operators
in thread Quote and Quote-like Operators

Yes, but in that case printing the contents of the heredoc will print the indentation as well.

A better solution would be if perl removed whatever leading whitepsace came before the heredoc (or the end token) from the text of the heredoc. Then the heredoc could be indented to match the surrounding code. In that case I would use it more often.

I'm not saying that heredocs aren't useful. Just that they break indentation.

--
John.