Check out caller:
local $SIG{ALRM} = sub { my @context = caller 0; die "timeout: in $context[1] at line $context[2]\n" };
In reply to Re: Finding the exact line in eval'ed code when alarm timed out
by GrandFather
in thread Finding the exact line in eval'ed code when alarm timed out
by kurtis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |