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. - EricThread Previous | Thread Next