Just another Perl shrine | |
PerlMonks |
Re: Improve processing time for string substitutionsby kyle (Abbot) |
on Apr 16, 2007 at 13:47 UTC ( [id://610353]=note: print w/replies, xml ) | Need Help?? |
Off the top of my head:
This way you only scan the whole string once instead of once for each entity. Update: I've gotten a private message that this needs a /e switch to work. I submit that this is not the case.
(I actually tested this before my original post, but I only pasted in the relevant portion.)
In Section
Seekers of Perl Wisdom
|
|