in reply to Re: =~ matches non-existent symbols
in thread =~ matches non-existent symbols

Hi! Yeah, I'm not using any loops because the files that I have to check consist of long single lines. Thanks anyway! Do you know what causes my code to match files that contain only actg?

Replies are listed 'Best First'.
Re^3: =~ matches non-existent symbols
by ikegami (Patriarch) on Nov 18, 2014 at 17:33 UTC
    It doesn't just contain actg; it also contains a newline. You need to chomp your input.