in reply to =~ matches non-existent symbols

So, what causes this code to match text in files that contain ONLY actg?

Replies are listed 'Best First'.
Re^2: =~ matches non-existent symbols
by Anonymous Monk on Nov 16, 2014 at 17:40 UTC
    Check your file with
    perl -mcharnames -e '<> =~ m/([^atcg])/i; print charnames::viacode(ord + $1), "\n"' ATCG_FILE
    I created one file in Vim, typed 'atcgATCG' there, saved it, run the one-liner and got:
    LINE FEED
    Many editors add newline to the end of a file when they save it.