while (my $line = <DATA>) { chomp $line; (my $nuline = $line) =~ tr/a-zA-Z/n-za-mN-ZA-M/; print "$nuline\n"; } __DATA__ me you someone else
Output:
zr lbh fbzrbar ryfr
update:: output added
In reply to Re: Problem using transliteration to modify a variable...
by FunkyMonk
in thread Problem using transliteration to modify a variable...
by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |