develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [PATCH] Tweaks so that miniperl.exe doesnt croak while building perl.exe

Thread Previous | Thread Next
From:
demerphq
Date:
March 9, 2007 01:12
Subject:
Re: [PATCH] Tweaks so that miniperl.exe doesnt croak while building perl.exe
Message ID:
9b18b3110703090112r74a9d145waa1869ed6bbb0de8@mail.gmail.com
On 3/9/07, Dr.Ruud <rvtol+news@isolution.nl> wrote:
> "Craig Berry" schreef:
>
> > Replacing "-" with "!" as the match delimiter changed the
> > interpretation of C<$\-> so that the backslash no longer escapes the
> > minus sign but now sidles up to the dollar sign to function as the
> > special variable C<$\>.
>
> Yikes.
>
> > Whereas before we were inadvertently getting
> > the special variable C<$-> interpolated, we are now inadvertently
> > getting the special variable C<$\> interpolated.
>
> Yikes.
>
> > I'm pretty sure the original intention for the character class was to
> > match word characters, dollar signs and minus signs, not word
> > characters, a special variable, and minus signs.
>
> Or get rid of the interpolation of special variables inside character
> classes.
> Take, inside a character class, any $\b as a "$" character, so [$-] and
> [$\-] and [\$-] and [\$\-] (and the [-$] variants) are all the same
> two-character class.

IMO this isnt really a viable option...  Just in terms of structural issues.

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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