laziness, impatience, and hubris | |
PerlMonks |
Re: tr faster than eq?by neosamuri (Friar) |
on Mar 10, 2005 at 23:55 UTC ( [id://438472]=note: print w/replies, xml ) | Need Help?? |
I belive that the tr/// is doing a little optimization, by actually running the tr only once since the result won't change. Then each time there after that it is called, it only has to return the result, that it already found.
In Section
Seekers of Perl Wisdom
|
|