develooper Front page | perl.perl5.porters | Postings from October 2017

Re: /(?<!st)/i is variable width - can we document this surprisebetter?

Thread Previous | Thread Next
From:
Karl Williamson
Date:
October 28, 2017 19:44
Subject:
Re: /(?<!st)/i is variable width - can we document this surprisebetter?
Message ID:
cd241d3b-e0a8-9587-6ba0-8ad1244b4308@khwilliamson.com
On 08/23/2017 07:57 AM, Abigail wrote:
> On Wed, Jul 05, 2017 at 05:11:19PM -0600, Karl Williamson wrote:
>>
>> '/(?<![s]t)/i'
>>
>> does work.
> 
> I don't think it does:
> 
>      $ perl -wE 'qr/(?<![s]t)/i'
>      Variable length lookbehind not implemented in regex m/(?<![s]t)/ at -e line 1.  $
> 
> This however does seem to work:
>      $ perl -wE 'qr/(?<![Ss]t)/i'
>      $
> 
> which is a slight improvement over the suggestion of /(?<![Ss][Tt])/
> 

Ok.

I have pushed 754dd7544223a129a81fe68103efea600c63a5a6 which changes 
perldiag to give more detail, including this workaround.  The patch is 
attached, for your convenience.

Would changing perl518\ddelta be of any benefit?

I have also opened https://rt.perl.org/Ticket/Display.html?id=132367
so that we actually fix this problem.


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