P is for Practical | |
PerlMonks |
Re^2: Problem with pre-compiled regexby saranrsm (Acolyte) |
on Jan 17, 2012 at 14:42 UTC ( [id://948329]=note: print w/replies, xml ) | Need Help?? |
Dear Monk Thank you very much for your kind assistance and your tweak made it work perfectly but I have this confusion, the scripts that I posted with and without pre-compiled regex takes almost same time to execute but shouldn't the pre-compiled regex run faster because of pre-compilation... P.S. I haven't used the @words and $text mentioned, I tried with a larger set of @words and a bigger $text instead of mere (have, regex) and a single sentence for $text as mentioned in the script
In Section
Seekers of Perl Wisdom
|
|