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

Re: Indented here docs?

Thread Previous | Thread Next
Ed Avis
July 1, 2016 10:38
Re: Indented here docs?
Message ID:
If this is added, there need to be checks that the indentation is consistent
through the heredoc.  So for example this would not be allowed:

    $foo = <<~END;

Error at line 3: leading indentation on line is less than the indentation of
the end delimiter.

At least, I would prefer that.  This restriction could be relaxed later if it
turns out to get in the way, but it would be hard to add it if it weren't
there originally, so I suggest it's safer to include the restriction in the
first version of this new feature.

Ed Avis <>

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