# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #95174] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=95174 >
<masak> rakudo: my @a = "OH HAI"; say so "OH HAI" ~~ /<@a>/ <p6eval> rakudo f63b82: OUTPUT«Bool::False» <masak> I think this is wrong. * masak submits rakudobug <masak> "The default way in which the engine handles a string scalar is to match it as a C<< '...' >> literal (i.e. it does not treat the interpolated string as a subpattern)." <masak> (from S05) <masak> rakudo: my @a = "OH\\sHAI"; say so "OH HAI" ~~ /<@a>/ <p6eval> rakudo f63b82: OUTPUT«Bool::True» <masak> uurgh. <masak> rakudo: my $x = "OH\\sHAI"; say so "OH HAI" ~~ /<$x>/ <p6eval> rakudo f63b82: OUTPUT«Bool::True» <masak> oh! it occurs for scalars as well.