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
- RE: RFC 283 (v1) C<tr///> in array context should... Henrik Tougaard
- Re: RFC 283 (v1) C<tr///> in array context s... Bart Lateur
- Re: RFC 283 (v1) C<tr///> in array conte... Randal L. Schwartz
- Re: RFC 283 (v1) C<tr///> in array c... Simon Cozens
- Re: RFC 283 (v1) C<tr///> in array c... Bart Lateur
- Re: RFC 283 (v1) C<tr///> in arr... Simon Cozens
- Re: RFC 283 (v1) C<tr///> i... Bart Lateur
- Re: RFC 283 (v1) C<tr///> in array context should... Richard Proctor
- Re: RFC 283 (v1) C<tr///> in array context s... Simon Cozens
- Re: RFC 283 (v1) C<tr///> in array context should... Paris Sinclair
- Re: RFC 283 (v1) C<tr///> in array context s... Bennett Todd
- Re: RFC 283 (v1) C<tr///> in array context should... Russ Allbery
- Re: RFC 283 (v1) C<tr///> in array context s... Paris Sinclair
- Re: RFC 283 (v1) C<tr///> in array conte... Russ Allbery