I was playing with a regex and array interpolation.From the documentation I thought the following comparisons would be the same, but they are not.
What am I missing? my @W = <perl weekly challenge with some extra things>; my $S = 'perlchallengeextrathingswithweeklysome' ; #randomly concatenate the words without spaces say 'yes' if $S ~~ / $<sol>=( {@W[3] }) /; say $<sol>; my $sol = @W[3]; # with say 'yes' if $S ~~ / $<sol>=( $sol ) /; say $<sol>; <response> yes 「」 yes 「with」