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

Re: Indented here docs?

Thread Previous | Thread Next
Andreas Koenig
June 30, 2016 16:57
Re: Indented here docs?
Message ID:
>>>>> On Thu, 30 Jun 2016 09:42:32 -0400, "Matthew Horsfall (alh)" <> 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


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