On Wednesday, September 10, 2003, at 12:52 AM, Alejandro Chavarria - CyPage wrote:

James,

If you ask the whole list your questions, you probably won't have to wait until I wake up to get an answer. ;)


Why is the "tr/\t/ /;" substitution better than just using s///g;? Thanks

Transliterate doesn't have to launch the whole Regular Expression engine just to replace characters, so it's considerably more efficient. Save m// and s/// for when you need the power of a pattern. For simple character swapping, tr/// is the way to go.


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to