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

Re: qr'$foo' and unescaped $ signs

Thread Previous
From:
Nicholas Clark
Date:
June 29, 2021 15:55
Subject:
Re: qr'$foo' and unescaped $ signs
Message ID:
20210629155527.GF11066@etla.org
On Tue, Jun 29, 2021 at 11:50:03AM -0400, Dan Book wrote:
> 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.

That case was actually in the text of my original message, which Eirik didn't
quote.

Nicholas Clark

Thread Previous


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