I have taken a look at the files and suggestions posted to my previous thread and here is what I made. However it returns a syntax error at line 14 and I can not see why. Does anyone have a suggestion as to why it is returning a syntax error?
#!/usr/bin/perl -w use strict; use diagnostics; my $file = "$ARGV[0]"; open (DAT, $file) || die("Can not open file!"); while (<DAT>) { my $seq = $_; if($seq =~m/^[ATCG]+$/){ my $DNA = ''; $DNA = $seq; my $revcom = reverse($DNA); $revcom =~ tr/ACGTacgt/TGCAtgca/; print $revcom; };
In reply to Isolating DNA cont. by undergradguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |