Updated before haukex caught my mistake.
In reply to Re: eval '...'; die "err: $!" by perlfan in thread eval '...'; die "err: $!" by almr