in reply to Genome UV Mutation Script -- Critique
Looks fine. One thing that jumps out at me is that your regex for counting locations, /[ct](?=[ct])/g, is duplicated, and at the same time is being used two different ways. I'd probably stick that in a subroutine and call it in both places. Perhaps something like
sub count_possible_mutation_locations(\$) { my $sr = shift; scalar( () = $$sr =~ /[ct](?=[ct])/g ) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Genome UV Mutation Script -- Critique
by kyle (Abbot) on Mar 14, 2007 at 21:54 UTC | |
by jdporter (Paladin) on Mar 15, 2007 at 01:42 UTC |