go ahead... be a heretic | |
PerlMonks |
Re: Here documents in blocksby BillKSmith (Monsignor) |
on Dec 19, 2020 at 19:50 UTC ( [id://11125464]=note: print w/replies, xml ) | Need Help?? |
The book "Perl Best Practices" recommends factoring out such a heredoc into a subroutine. "The heredoc does compromise the indentation of the subroutine, but that's now a small and isolated section of the code..."
Bill
In Section
Seekers of Perl Wisdom
|
|