![]() |
|
more useful options | |
PerlMonks |
Re: Regexp::Assemble hangs with a certain caseby Anonymous Monk |
on Nov 16, 2012 at 03:18 UTC ( #1004110=note: print w/replies, xml ) | Need Help?? |
Run this
Compare with one or two pages from this infinite loop
You should notice that without g in m//g the pos-ition doesn't advance, you're always matching against 2, and its always true, and it never ends, cause 2 is always \d Regexp::Assemble hangs with a certain case A regex produced by Regexp::Assemble is not Regexp::Assemble , Regexp::Assemble is not hanging -- but you're not even using Regexp::Assemble to assemble a regex, so its got nothing to do with it
In Section
Seekers of Perl Wisdom
|
|