Man of Honour
- Joined
- 21 Nov 2004
- Posts
- 47,166
Hi all, as part of a project I am working on at the moment I am trying to do the following (below). Problem is, I haven't coded in Perl for years and years and am completely stuck! Any ideas? Any help would be hugely appreciated!
File 1 (csv file), for each line: store the number in column 4 (lets call it X)
Goto File 2 (.txt and a long string of letters), count each character until X is found.
At X, add 1 and count how many characters until TAG, TAA or TGA are reached (call this Y).
At X, add 2 and count how many characters until TAG, TAA or TGA are reached (call this Z).
Add Y and Z to new columns in File 1 at the end of the line where X was found.
Goto back to File 1, goto the next line and repeat.