in reply to Re: Comparing 2 different-sized strings
in thread Comparing 2 different-sized strings

Hi, Thank you so much for your help. So when I execute the script I noticed that if I want 3 mismatches and set $misses to 3, I also get the ones that have 2 mismatches also which makes sense sense inside the subroutine it asks for >= $min. However, if I want only 3 mismatches and NOT to include the ones with 2, I tried changing it to =$min without the greater than sign, but then it gave me an error message:
can't modify bitwise xor (^) in list assignment at rRNA_target.pl line + 92, near ") }"
Any ideas what I can do?

Replies are listed 'Best First'.
Re^3: Comparing 2 different-sized strings
by BrowserUk (Patriarch) on Aug 14, 2013 at 10:46 UTC
    I tried changing it to =$min without the greater than sign, but then it gave me an error message:

    A single = is assignment not comparison. You need to change >= to ==; it should then work as you require.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.