The \s character class includes the characters \r and \n so including them is superfluous. If you want efficiency then use tr/// instead of s///:# Remove extraneous characters, make it one big long string to use sub +str position on it $genome =~ s/[\d\r\n\s]+//g;
# Remove extraneous characters, make it one big long string to use sub +str position on it $genome =~ tr/0-9 \t\f\n\r//d;
In reply to Re: Genome UV Mutation Script -- Critique
by jwkrahn
in thread Genome UV Mutation Script -- Critique
by c4onastick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |