So how can I get this code to read from a .txt file?
You have to write code to open a file, read data from it (perhaps line-by-line with readline), and then operate on the data using techniques shown you by rjt and others and developed by yourself, and then write the transformed data as appropriate.
I'm sorry to be so vague, but this is a very general question! Perhaps something like chromatic's freely-downloadable Modern Perl would help.
In reply to Re^5: Reverse Complement
by AnomalousMonk
in thread Reverse Complement
by stamp1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |