2000-09-26-05:18:57 Paris Sinclair:
> >     (%alphabet) = $string =~ tr/a-z//;
> 
> also a little more concise (and certainly more efficient...) than
> 
>       %alphabet = map { $_ => eval "\$string =~ tr/$_//" } (a..z);

However, compared to say

        $hist[ord($_)]++ for split //, $string;

the performance edge might not be quite so dramatic. Then again,
maybe it would be, I dunno.

-Bennett

PGP signature

Reply via email to