in reply to indented here-doc "delimiter"

You should test it, I can't at the moment.

My reading is that the whitespace before the delimiter EOF is striped from every line.

The interesting question is rather what happens if the a line is more to the left than the delimiter. A warning?

Btw: I love this feature! :)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: indented here-doc "delimiter"
by ibm1620 (Hermit) on Apr 14, 2018 at 01:29 UTC
    Turns out I can't test it either, since it was introduced in 5.26.

    However, brian d foy states here that the leading whitespace from the final delimiter is what's used to determine what gets stripped from every line (as you had supposed). And, that lines with insufficient indentation cause a compile-time error.

        "Mixing tabs with spaces will cause headaches"? - So, something that Perl borrows from Python… ;-/