JohnLucania
Programmer
I put this in a modue.
sub trans {
my %translate = (
'uvx' => 'asn',
'uxx' => 'cya',
'yyu' => 'tis',
'xvu' => 'lis'
);
for( @SeqChar ){
tr/abce/uvxy/;
s/(...)/$translate{$1}/g;
print $_,"\n";
}
}
trans();
1;
How do you get the acutal str output on the screen?
When this module (Tchar.pm) is called ** use Tchar ('add'); **, it is not displaying the output from it.
I call it in .pl
print "The str translated are: \n";
trans();
jl
sub trans {
my %translate = (
'uvx' => 'asn',
'uxx' => 'cya',
'yyu' => 'tis',
'xvu' => 'lis'
);
for( @SeqChar ){
tr/abce/uvxy/;
s/(...)/$translate{$1}/g;
print $_,"\n";
}
}
trans();
1;
How do you get the acutal str output on the screen?
When this module (Tchar.pm) is called ** use Tchar ('add'); **, it is not displaying the output from it.
I call it in .pl
print "The str translated are: \n";
trans();
jl