See also RFC::Prototype::111 [pobox.com] from back in the initial Perl 6 days. Specificly RFC::Prototype::111. It would be nice if feature #2 was implemented, ie. here-docs not being so sensitive about trailing whitespace in the terminator.
PS Would using "code" instead of "executable" for your filter solve the problem of filtering inside strings?
Thanks for the suggestions, I'll have a read of RFC111 and add that feature in the next version.
I did try using "code" in the filter when I was first writing the module, however because "code" removes here documents (see &Text::Balanced::extract_quotelike) it doesn't see the terminator strings until the indenting has been removed. Bit of a chicken and egg situation! What I'll try next is to run Text::Balanced over the current line (when a << has been seen) to identify if the << is part of a
RFC::Prototype::111 (Score:5, Interesting)
Reply to This
Re:RFC::Prototype::111 (Score:1, Interesting)
I did try using "code" in the filter when I was first writing the module, however because "code" removes here documents (see &Text::Balanced::extract_quotelike) it doesn't see the terminator strings until the indenting has been removed. Bit of a chicken and egg situation! What I'll try next is to run Text::Balanced over the current line (when a << has been seen) to identify if the << is part of a