Front page | perl.perl5.porters |
Postings from June 2016
Re: Indented here docs?
Thread Previous
|
Thread Next
From:
wolfsage
Date:
June 30, 2016 17:44
Subject:
Re: Indented here docs?
Message ID:
CAJ0K8bhFs=7oDhf0Hv4kdoXWgbkzJ_ost-phJxvJx2fH6XRCjw@mail.gmail.com
On Thu, Jun 30, 2016 at 12:57 PM, Andreas Koenig
<andreas.koenig.7os6VVqR@franz.ak.mind.de> wrote:
>>>>>> On Thu, 30 Jun 2016 09:42:32 -0400, "Matthew Horsfall (alh)" <wolfsage@gmail.com> said:
>
> > As I've implemented it, the closing delimiter must match:
>
> > /^\s+$delim\n/
>
> > So that $delim can exist anywhere in the text (excepting where it closes).
>
> > What am I missing? Can we do this?
>
> I think I have also wanted this several times, thanks much.
>
> Bikeshedding: my use case would require /^\s*$delim\n/ instead, because
> I want my program to survive both in-denting and out-denting to the left
> margin.
Oh, no I just got my regexp wrong, yours is correct :)
-- Matthew Horsfall (alh)
Thread Previous
|
Thread Next