On Tue, Aug 12, 2008 at 12:00:54PM -0700, Carl Mäsak wrote:
> # New Ticket Created by  "Carl Mäsak" 
> # Please include the string:  [perl #57866]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57866 >
> 
> 
> r30183:
> $ ./perl6 -e 'say "b" ~~ /<[a..c]>/' # matches
> b
> $ ./perl6 -e 'say "b" ~~ /<["a".."c"]>/' # should match, doesn't
> 
> Maybe this is a PGE bug -- please reclassify as needed.

I can't find anything in S05 that indicates that we should be
able to use double quotes as character delimiters inside of
the character enumeration.  Thus the case of C<< <["a".."c"]> >> 
is really equivalent to C<< <["ac]> >>, as the C< ".." > range simply 
collapses to match the double quote (in the same way that C<< <[a..a]> >> 
would simply match an 'a').

So, I think PGE is following the spec, and the example is
incorrect.

Pm

Reply via email to