[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: The translate operator (was Re: [MacPerl] regex help)




>> Paul Schinder, <schinder@pobox.com> asked:
>> Can someone show a use of tr// to humorous or grotesque effect? ;-)

OK, so Matthias has covered the humorous: I guess the grotesque could be
something like...

$string="Larry&TomC";
$string=~tr/TLC&mayo&r'n'r/aBsGei t&l/;
print "$string\n";

Sorry,
        Paul


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org