Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Stop runaway regex

by DrHyde (Prior)
on May 30, 2014 at 11:07 UTC ( #1087981=note: print w/replies, xml ) Need Help??


in reply to Stop runaway regex

There's an example in CPAN::ParseDistribution::Unix. It uses Parallel::ForkManager to run the potentially time-consuming code in a seperate process, communicate its results back to the parent process, and time it out if it takes too long. This code only works reliably on Unix. If you can find a way of making it work on legacy platforms then I'd love to know.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2020-10-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?