JohnLucania
Programmer
chomp(@SeqChar = <STDIN>)
sub trans {
map {tr/abce/uvxy/, print "$_\n"} @SeqChar;
}
How do you get the strings translated from 'sub trans' and print the corresponding strings on the screen?
i.e.
if the strings translated are 'uvx' then print 'asn' on the screen
if the strings translated are 'uxx' then print 'cya' on the screen
if the strings translated are 'yyu' then print 'tis' on the screen
if the strings translated are 'xvu' then print 'lis' on the screen
etc
etc
sub trans {
map {tr/abce/uvxy/, print "$_\n"} @SeqChar;
}
How do you get the strings translated from 'sub trans' and print the corresponding strings on the screen?
i.e.
if the strings translated are 'uvx' then print 'asn' on the screen
if the strings translated are 'uxx' then print 'cya' on the screen
if the strings translated are 'yyu' then print 'tis' on the screen
if the strings translated are 'xvu' then print 'lis' on the screen
etc
etc