Your code worked for me though. It identified the first line of "rawseq data" as a match.
Note that in $candseq ~~ @rawseq, string equality is being checked. If you want SKA_HWI-EAS418:5:1:163:742#0/1 to match the second line "rawseq data" as well, try qr($candseq) ~~ @rawseq.
Reference: Section "Smart matching in detail" in perlsyn
In reply to Re^3: Comparing strings with special characters
by jaimon
in thread Comparing strings with special characters
by skolobs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |