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:
Dr.Ruud
Date:
March 9, 2007 01:08
Subject:
Re: [PATCH] Tweaks so that miniperl.exe doesnt croak while building perl.exe
Message ID:
20070309090827.13277.qmail@lists.develooper.com
"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.

-- 
Affijn, Ruud

"Gewoon is een tijger."


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