in reply to Re^2: Comparing strings with special characters
in thread Comparing strings with special characters

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

  • Comment on Re^3: Comparing strings with special characters