> но пары ненаглядно описаны.
use v5.10;
my $str = 'defg';
$str =~ tr/
defg/
5678/;
say $str;
# perl tr.pl
5678
--
Andrew Shitov
______________________________________________________________________
andy на shitov.ru | http://shitov.ru