in reply to Here documents in blocks
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*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Here documents in blocks
by ikegami (Patriarch) on Dec 20, 2020 at 16:58 UTC | |
|
Re^2: Here documents in blocks
by Bod (Parson) on Dec 19, 2020 at 16:59 UTC | |
by LanX (Saint) on Dec 19, 2020 at 19:15 UTC | |
by Discipulus (Canon) on Dec 19, 2020 at 17:07 UTC | |
by Bod (Parson) on Dec 19, 2020 at 17:11 UTC | |
by Discipulus (Canon) on Dec 19, 2020 at 17:21 UTC | |
by jo37 (Curate) on Dec 19, 2020 at 18:26 UTC |