Check out perldoc perlop for the options
to tr. As it appears our site docs are still a bit old,
here is an excerpt from a Perl5.6.0 dist:
c Complement the SEARCHLIST.
d Delete found but unreplaced characters.
s Squash duplicate replaced characters.
U Translate to/from UTF-8.
C Translate to/from 8-bit char (octet).
jeffa | [reply] |
none of the books or docs that I have show any flags to run tr/// with
perldoc perlop | [reply] |
It's odd, but none of the books or docs that I have show any flags to run tr/// with
Please list the names of those books, so we can be sure to dis-recommend them for others.
-- Randal L. Schwartz, Perl hacker
| [reply] |
My copy of the Camel certainly mentions all the tr///; switches. But, I'll admit when I first started Perl I would buy these books off the Street Vendors in NYC for $5. I got the Dummies book and one about Perl for Windows NT Servers. Both of them were barely worth even the little cash I shelled out, and left out major details.
The O'Reilly books are popular for a reason. | [reply] |