On Thu, Aug 02, 2007 at 04:19:18PM -0700, [EMAIL PROTECTED] wrote:
>  Increment of a C<Str> (in a suitable container) works similarly to
>  Perl 5, but is generalized slightly.  First, the string is examined
>  to see if it could be the string representation of a number in
>  any common representation, including floating point and radix
>  notation. (Surrounding whitespace is also allowed around such a
>  number.)  If it appears to be a number, it is converted to a number
>  and incremented as a number.  

Just for verification:  an increment of "0xff" will therefore
result in 256 and not "0xfg".  Correct?

>  final alphanumeric sequence in the string.  Unlike in Perl 5, this
>  alphanumeric sequence need not be anchored to the beginning of the
>  string, nor does it need to begin with an alphabetic character; the
>  final sequence in the string matching C<\w+> is incremented regardless
>  of what comes before it.  

...does the \w+ include non-ASCII alphanumerics and underscore?  
Or should the spec limit itself to [A-Za-z0-9]+ here?  If we
include non-ASCII alphanumerics, then incrementing something like
"résumé" produces "résumf" ?

Pm

Reply via email to