http://www.perlmonks.org?node_id=1094791


in reply to Re^4: Filter and writing error log file
in thread Filter and writing error log file

See perlre. The carret negates the class, so the regular expression matches non-ACTG characters, but I used !~ to negate that. It's like the difference between

"The sequence doesn't contain invalid characters"

and

"The sequence contains valid characters"

These two are not equivalent, as the second lacks the work "only".
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ