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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Quote and Quote-like Operators
by tchrist (Pilgrim) on Dec 16, 2011 at 14:14 UTC | |
by tye (Sage) on Dec 16, 2011 at 16:26 UTC | |
by Your Mother (Archbishop) on Dec 16, 2011 at 17:21 UTC | |
by tye (Sage) on Dec 16, 2011 at 18:18 UTC | |
by BrowserUk (Patriarch) on Dec 16, 2011 at 19:20 UTC | |
| |
by runrig (Abbot) on Dec 16, 2011 at 22:00 UTC | |
by tye (Sage) on Dec 16, 2011 at 23:09 UTC | |
by demerphq (Chancellor) on Dec 27, 2011 at 16:51 UTC |
In Section
Meditations