in reply to tr/// vs s/// for single character
perlfunc:perlop tr eq y///
s/// deals with regular expressions, and tr deals with lists of characters (so if you're not looking to match and replace patterns, you're looking to transliterate characters).
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (crazyinsomniac) Re: tr/// vs s/// for single character
by Flame (Deacon) on Oct 07, 2001 at 23:43 UTC |