That can be evil if $alpha contains a slash or is untrusted. To do that tr right requires some really careful thinking.eval "tr/$alpha//cd";
That's why I conveniently ignored all but the basic specification. {grin}
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: Find duplicate chars in a string
by merlyn
in thread Find duplicate chars in a string
by monkfish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |