This regex timeout issue, in a slightly different context, is a problem I am having as well. I appreciate the light being shed by all the sages, even though my humble novice mind is still struggling in the swamp of Confusion.
My situation is that:
1) I didn't really understand BUU's last post.
2) I am intimidated by regex::parser
3) I am looking for a general solution for the issue of what to do when sometimes a program takes too long for whatever reason and you need to give up and forget it.
Rather than slink away into the shadows, I followed up BUU's breadcrumbs with google searches
http://www.google.de/search?hl=de&q=perl+%22timeout+sub%22&btnG=Google-Suche&meta=
and
http://www.google.de/search?hl=de&q=perl+%22unreliable+program%22&btnG=Suche&meta=
which brought me back to perlmonks:
http://perlmonks.thepen.com/220132.html
"Using Expect.PM to manage an unreliable program."
Is this a corridor that we novices who wish to manage regex timeout problems would do well to explore... or will it only confuse us more?
Humbly,
Thomas.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.