in reply to Re: Stop runaway regex # alarm , /g , (?{code})
in thread Stop runaway regex

Well, while the docs look promising, alarm didn't interrupt regexes for me!

Signals are executed only after the regex is completed. (5.10 / Linux)

Found this thread "Timeout alarm for regex", so this always used to be problematic!

(see also Deferred Signals (Safe Signals))

No idea if it's still the case for newer Perl versions.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^2: Stop runaway regex # alarm problematic