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
- RFC 283 (v1) C<tr///> in array context should re... Perl6 RFC Librarian
- Re: RFC 283 (v1) C<tr///> in array context ... Richard Proctor
- Re: RFC 283 (v1) C<tr///> in array cont... Simon Cozens
- Re: RFC 283 (v1) C<tr///> in array ... Bart Lateur
- Re: RFC 283 (v1) C<tr///> in array ... Paris Sinclair
- Re: RFC 283 (v1) C<tr///> in ar... Bennett Todd
- Re: RFC 283 (v1) C<tr///> ... Paris Sinclair
- Re: RFC 283 (v1) C<tr///&... Bennett Todd
- Re: RFC 283 (v1) C<tr... Paris Sinclair
- Re: RFC 283 (v1) C<tr... Bennett Todd
- Re: RFC 283 (v1) C<tr... Paris Sinclair
- Re: RFC 283 (v1) C<tr... Bennett Todd
- Re: RFC 283 (v1) C<tr... Paris Sinclair
- Re: RFC 283 (v1) C<tr... Russ Allbery
- Re: RFC 283 (v1) C<tr... Paris Sinclair
- Re: RFC 283 (v1) C<tr... Russ Allbery