Problems? Is your data what you think it is? | |
PerlMonks |
Re: Here documents in blocks (updated)by AnomalousMonk (Archbishop) |
on Dec 19, 2020 at 18:30 UTC ( [id://11125462]=note: print w/replies, xml ) | Need Help?? |
However, this has the disadvantage that you have to manually stick a newline at the end to get a nice block ending. But I suppose you could tack that on automatically with a .= "\n" or some such. (Update: I realized after posting that I only tested with spaces as indentation characters, not tabs, which I never use anyway. I think the code would work with pure tab indents, but I haven't tested this. I doubt the code would work with a mixture of spaces and tabs used as indentation.)
Update: Yes, Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|