|Just another Perl shrine|
Re^3: Regexp string concatby Jasper (Chaplain)
|on Jun 21, 2004 at 09:38 UTC||Need Help??|
An optimisation I've thought of for this, even though the thread is long dead, is to lc the original string, and have all the strings to match as upper case, then all you need do is: $string =~ s/$_/$_/i for @$qRef; I'm sure the regex is considerably faster for having taken the executable bit out of it.