# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #123760] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=123760 >
<masak> m: say "foo".comb(/o/) <camelia> rakudo-moar d9f58f: OUTPUT«o o» <masak> m: say "foo".comb('o') <camelia> rakudo-moar d9f58f: OUTPUT«Cannot call 'comb' [...]» * masak suggests the latter form work, too <masak> reason: I saw some code I had written where I had a regex with just a literal string in it. I thought "hey, I ought to be able to get away with writing just the string here..." <masak> didn't work. <colomon> +1 <colomon> just a string does work with subst. <colomon> m: say "foo".subst("o","e") <camelia> rakudo-moar d9f58f: OUTPUT«feo» <masak> colomon: good point. * masak submits NYI rakudobug