# New Ticket Created by  Philippe de Rochambeau 
# Please include the string:  [perl #118539]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118539 >




In Rakudo 2013.5 on Windows 7, 

>perl6 -e "if (['a','b'] ~~ (*, 'a', *)) {  say 'matches' } else { say 'not' };"

and 

>perl6 -e "if ['a','b'] ~~ (*, 'a', *) {  say 'matches' } else { say 'not' };"


throw a "Cannot convert string to number" error

PS

The following example on 
http://en.wikibooks.org/wiki/Perl_6_Programming/Control_Structures, is invalid, 
since ~~ takes precedence on the comma.

["a", "b"] ~~ *, "a", *;   



Reply via email to