On Sat, Dec 24, 2011 at 12:37 AM, Karl Williamson <public@khwilliamson.com>wrote: > On 04/13/2011 08:33 PM, brian d foy wrote: > >> In article<3020.1302738770@chthon**>, 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? >>> >> >> Why not do that now (as in 5.15) with the current characters that it >> would quote. Then, it's already there when we want to expand it. >> >> > This seems like a reasonable solution. Does anyone have objections? > I do, sorta. \p{Pattern_Syntax} isn't a superset of what quotemeta() currently uses; things like NULL and the control characters aren't included in the former, but are quoted by the latter. Seems easy enough to resolve though: quotemeta should escape all non-word character in the ASCII range, or those matching \p{Pattern_Syntax}.Thread Previous | Thread Next