![]() |
|
P is for Practical | |
PerlMonks |
Re: Regexp::Assemble hangs with a certain caseby golux (Chaplain) |
on Nov 15, 2012 at 16:44 UTC ( #1004039=note: print w/replies, xml ) | Need Help?? |
Hi Kimmel,
It's because in the second case, $content matches the $regex (at the same location each time), so you're never changing the condition; hence never exiting the loop. Try changing "while" to "if", perhaps?
In Section
Seekers of Perl Wisdom
|
|