JohnLucania
Programmer
my @SeqChar;
print "Enter sequences and 'enter' and then Ctrl + D: ";
chomp(@SeqChar = <STDIN>);
sub trans {
my %translate = (
'aug' => 'asn',
'uag' => 'cya',
'gcu' => 'tis',
'aag' => 'lis',
'atg' => 'phe'
);
for( @SeqChar ){
tr/atcg/uagc/;
s/(...)/$translate{$1}/g;
print $_,"\n";
}
}
trans();
Why am I getting these errors?
./tchar.pl
Enter sequences and 'enter' and then Ctrl + D: atgatg
Use of uninitialized value in substitution iterator at ./tchar.pl line 19, <STDIN> line 1.
Use of uninitialized value in substitution iterator at ./tchar.pl line 19, <STDIN> line 1.
jl
print "Enter sequences and 'enter' and then Ctrl + D: ";
chomp(@SeqChar = <STDIN>);
sub trans {
my %translate = (
'aug' => 'asn',
'uag' => 'cya',
'gcu' => 'tis',
'aag' => 'lis',
'atg' => 'phe'
);
for( @SeqChar ){
tr/atcg/uagc/;
s/(...)/$translate{$1}/g;
print $_,"\n";
}
}
trans();
Why am I getting these errors?
./tchar.pl
Enter sequences and 'enter' and then Ctrl + D: atgatg
Use of uninitialized value in substitution iterator at ./tchar.pl line 19, <STDIN> line 1.
Use of uninitialized value in substitution iterator at ./tchar.pl line 19, <STDIN> line 1.
jl