[Chicago-talk] Removing "." from a string?

Elizabeth Cortell zrusilla at mac.com
Thu Jan 31 15:26:24 PST 2008

>> Bah, kids these days... haven't been tought not to use s/// when tr/// will 
>> do. 
>Other than saving one keystroke, is there anything specifically more
>correct or better to using tr/// there than using perl's re?

tr/// is a compile-time operator. If I understand correctly,  it will not be recompiled with each invocation, and you avoid the overhead of awakening the regular-expression dragon, er, engine.

More information about the Chicago-talk mailing list