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

Re: qr'$foo' and unescaped $ signs

Thread Previous | Thread Next
From:
Dan Book
Date:
June 29, 2021 15:50
Subject:
Re: qr'$foo' and unescaped $ signs
Message ID:
CABMkAVWgx2jvNzHjaL+frLi2x9WYpGLSP0tKi7dXFHsmED2ozg@mail.gmail.com
On Tue, Jun 29, 2021 at 11:39 AM Eirik Berg Hanssen <
Eirik-Berg.Hanssen@allverden.no> wrote:

>
>
> On Tue, Jun 29, 2021 at 4:31 PM Nicholas Clark <nick@ccl4.org> wrote:
>
>> So I guess, the question is:
>>
>> If the PV stored for a regex has an *unescaped* dollar sign in it it *has*
>> to have originated from a regex written with '' ?
>>
>
>   I'm not sure I follow you all the way, but I don't think so.  It could
> come from an interpolated variable:
>

Or the last character of the regex, which is quite common.

-Dan

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