if I understand your question, prior of perl 5.26 you can use some trick to indent heredocs: substitution (but the token in not indented):
($var = <<"HEREDOC") =~ s/^\s+//gm; your text goes here HEREDOC
But note you can also use " HEREDOC" as token: see (and follow the white rabbit) here
L*
In reply to Re: Here documents in blocks
by Discipulus
in thread Here documents in blocks
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |