From a1a51bc42f7219c8f8abe95a817f454e6e3a5e1d Mon Sep 17 00:00:00 2001 From: pmichaud Date: Thu, 26 Jul 2012 10:28:54 -0500 Subject: Add deprecation notes for regex spec changes. --- skel/docs/announce/2012.07 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'skel') diff --git a/skel/docs/announce/2012.07 b/skel/docs/announce/2012.07 index 6aa35c5..f6b610a 100644 --- a/skel/docs/announce/2012.07 +++ b/skel/docs/announce/2012.07 @@ -30,6 +30,18 @@ specification, and will be removed or changed: * IO::File and IO::Dir will go away, and &dir will return values of type IO::Path (which is currently the superclass of IO::File and IO::Dir). +* Leading whitespace in rules and under :sigspace will no longer be + converted to <.ws> . For existing regexes that expect this conversion, + add a in front of leading whitespace to make it meta again. + Scheduled for the 2012.08 release. + +* The ?-quantifier on captures in regexes currently binds the capture + slot to a List containing either zero or one Match objects; i.e., it + is equivalent to "** 0..1". In the future, the ?-quantifier will + bind the slot directly to a captured Match or to Nil. Existing code + can manage the transition by changing existing ?-quantifiers to + use "** 0..1", which will continue to return a List of matches. + * The method Str.bytes will be removed. To get the number of codepoints in a string, use .codes instead. To get the number of bytes in a given encoding, use $str.encode($encoding).bytes . -- cgit v1.1