develooper Front page | perl.perl5.porters | Postings from April 2011

Re: The Unicode Bug still bites?

Thread Previous | Thread Next
From:
Eric Brine
Date:
April 13, 2011 17:39
Subject:
Re: The Unicode Bug still bites?
Message ID:
BANLkTi=yUgUhWM4vdGuaOMqpZr6pZk39ew@mail.gmail.com
On Wed, Apr 13, 2011 at 7:52 PM, Tom Christiansen <tchrist@perl.com> wrote:

> What's wrong with quotemeta() someday changing to quote say,
> \p{Pattern_Syntax}
> character if and when Perl makes use of them? The idea is that if Perl
> changes,

that quotemeta() has to change to keep up with it.  What's so wrong with
> that?
>

That you ask that makes me think you assume quotemeta is only used for Perl
regex patterns. The documentation places no such limitation.

You've since mentioned that the possibility of an issue occurred to Larry as
well.

Larry said [...] that we might at most want to put in a
>
small note saying how if Perl ever decides to grab up more characters for
>
metas, that quotemeta would also quote those.
>

If we're going to do a backward incompatible change now, why not make it so
we don't have to do another later. Clarifying our intents for quotemeta is
one way of doing that.

- Eric

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