develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Indented here docs?

Thread Previous | Thread Next
July 1, 2016 12:36
Re: Indented here docs?
Message ID:
On Fri, Jul 1, 2016 at 7:56 AM, Ed Avis <> wrote:
> Alberto Simões <albie <at>> writes:
>>Let it work only if the prefix is the same, exactly the same order of
>>tab and spaces?
> Personally I think that is the best choice.  It keeps well away from holy
> wars about the exact size of a tab.

This is the way I've implemented it. If your EOF is preceded by three
spaces and a tab, then each line must have that identical indentation,
otherwise for those lines that don't match, a warning is thrown and
they are not modified.

-- Matthew Horsfall (alh)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About