in reply to transliteration d flag not working as expected
you can achieve the desired result by combining two tr
DB<112> $_="alter" => "alter" DB<113> tr/this//cd # delete anything except t,h,i,s => 4 DB<114> $_ => "t" DB<115> tr/this/flip/ # translate => 1 DB<116> $_ => "f"
Cheers Rolf
( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom