CountZero gave good practical advice and I end up doing the same thing HEREdoc and q{-long stings-} often; usually for other code like SQL or JS. If you are putting a lot of paragraphs into code, however, there is probably a sub-optimal design involved.
Handling text snippets is a better job for a either a template tree or a DB of some sort. Templates being easier to manage by hand, DBs being the only reasonable way to delegate or open editing to many/non-technical users; git + a template tree would be great if it’s just devs working with it.
This sort of thing is harder, obviously, than putting text into code but it makes so many things better down the line and it starts to get pretty easy once you've mastered a templating or DB kit.
In reply to Re: best way to print paragraphs of text
by Your Mother
in thread best way to print paragraphs of text
by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |