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

Re: Indented here docs?

Thread Previous | Thread Next
From:
wolfsage
Date:
November 12, 2016 15:25
Subject:
Re: Indented here docs?
Message ID:
CAJ0K8biOPjPRr+DODTsH9HJ_GG3sTyFkzC-XQTz=zuvrQNs_cw@mail.gmail.com
On Fri, Nov 11, 2016 at 8:40 AM, Matthew Horsfall (alh)
<wolfsage@gmail.com> wrote:
> Status update:
>
> I reworked the indented-heredocs branch on top of base and added some
> documentation finally:
>
>   https://perl5.git.perl.org/perl.git/shortlog/refs/heads/smoke-me/alh/indented-heredocs
>
> 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;
    ...
    EOF

Also added a fix for broken behaviour in existing heredocs:

  https://perl5.git.perl.org/perl.git/commitdiff/981f4010c806ce68c251251139ce956da6f151f9

This worked:

  print << 'EOF';

But this didn't:

  print << EOF;

Now it does.

-- Matthew Horsfall (alh)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About