in reply to Re: Genome UV Mutation Script -- Critique
in thread Genome UV Mutation Script -- Critique

Why use a prototype here? And why take a reference to the string?

sub count_possible_mutation_locations { return scalar ( () = $_[0] =~ /[ct](?=[ct])/g ); }

Replies are listed 'Best First'.
Re^3: Genome UV Mutation Script -- Critique
by jdporter (Paladin) on Mar 15, 2007 at 01:42 UTC

    Oh, no particular reason to in this case. Sometimes I like to do this to get a little bit of typesafety.