in reply to Stop runaway regex
No! But you might want to experiment with alarm and stop the whole program with die².
> I know it can be modified so it doesn't break, etc,
while I don't like the way you are asking, I'll give you two general hints:
Cheers Rolf
( addicted to the Perl Programming Language)
¹) I said die cause I've never seen any return-like exit from a regex ...which doesn't mean it's impossible² (?). ( But I am not interested to test it for you :)
²) well you can always catch die from within eval { BLOCK }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stop runaway regex # (?{code})
by LanX (Saint) on May 29, 2014 at 16:58 UTC | |
by Anonymous Monk on May 29, 2014 at 20:08 UTC | |
|
Re^2: Stop runaway regex # alarm problematic
by LanX (Saint) on May 29, 2014 at 18:16 UTC |