hehe

nkuipers nkuipers at uvic.ca
Mon Feb 3 14:59:57 CST 2003


I changed $lengthRemaining to $n after successfully testing the script, to 
better fit the pod statement, and forgot to update the if statement:

sub makeDNA {
	my $n = shift;
	my @alphabet = qw( A C G T);
	if ($n == 0)
	{
		return;
	}
	print $alphabet[int(rand(4))];
	makeDNA($n - 1);
}




More information about the Victoria-pm mailing list