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

Re: Indented here docs?

Thread Previous | Thread Next
November 12, 2016 15:25
Re: Indented here docs?
Message ID:
On Fri, Nov 11, 2016 at 8:40 AM, Matthew Horsfall (alh)
<> wrote:
> Status update:
> I reworked the indented-heredocs branch on top of base and added some
> documentation finally:
> I would appreciate some final review of the docs/code, but if there's
> nothing horrible that comes up I plan to push this to blead on Monday.

Branch updated to allow spaces before and after the ~ modifier:

  print << ~ EOF;

Also added a fix for broken behaviour in existing heredocs:

This worked:

  print << 'EOF';

But this didn't:

  print << EOF;

Now it does.

-- Matthew Horsfall (alh)

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