[Chicago-talk] Removing "." from a string?
andy at petdance.com
Fri Feb 1 15:22:45 PST 2008
On Feb 1, 2008, at 5:23 PM, Steven Lembark wrote:
>> Other than saving one keystroke, is there anything specifically more
>> correct or better to using tr/// there than using perl's re?
> Less overhead: tr is iterative & table-driven,
> regex is recursive NDA.
All of which is undoubtedly irrelevant in this case, or 99% of any
case unless for some reason you have a program where the bottleneck is
the removal of periods from a string.
In this case, Richard wants the most readable version.
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
More information about the Chicago-talk