Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Regexp::Assemble hangs with a certain case

by golux (Pilgrim)
on Nov 15, 2012 at 16:44 UTC ( #1004039=note: print w/ replies, xml ) Need Help??


in reply to Regexp::Assemble hangs with a certain case

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?

say  substr+lc crypt(qw $i3 SI$),4,5


Comment on Re: Regexp::Assemble hangs with a certain case

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (21)
As of 2015-07-31 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls