good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: next question...by archen (Pilgrim) |
on Dec 22, 2001 at 04:51 UTC ( [id://133923]=note: print w/replies, xml ) | Need Help?? |
tr/// is for characters, s/// is for strings. tr is generally a better choice where it works because it's more efficent. s/// can do everything tr can because it can work with strings of length 1 (ie - one character), it's just slightly slower. I guess it's more about taste and speed than anything else
In Section
Seekers of Perl Wisdom
|
|