I was curious to see if MacPerl would bomb out with a huge regex made up of 200 or so 
short ones. It worked like a charm.

Superb. Thank you Bart.
- - -
On Thu, 22 Aug 2002 23:53:23 +0200, Bart Lateur wrote:

[snip]
>And in your case:

>       m/$_/

>is very inefficient code by itself. The regular expression gets compiled 
>for *every* loop, a slow process indeed. Say you can speed this up by a 
>factor 10. Then this factor of maximmum 2 looks pretty silly in 
>comparison, doesn't it?

>This:
>       $" = "|";
>       $text =~ /@rgx/i

>does the same as your code. Only one (huge) regex to compile.

Reply via email to