On 7/6/07, elavazhagan perl <[EMAIL PROTECTED]> wrote:
While executing the mutate.pl pgrogram,the diagnostic msg obtained as "Use of uninitialized value in substr at mutate.pl line 31, <STDIN> line 1." I almost defined all the variables. Would you kindly provide some remedy to this……
Define all the variables. Or, at least, all of the ones used around line 31.
my ($newbase)=randomnucleotide(); substr($DNA,$position,1,$newbase);
This looks to be around line 31. What does randomnucleotide() return?
sub randomnucleotide { my ($nucleotides) = ('A','G','C','T');
That doesn't look right.
return randomelement(@nucleotide); }
How come that's using @nucleotide but the other one is $nucleotides? Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/