First, why aren't you using the timeout() member of LWP::UserAgent? Second, your code does not capture the return from die(). Remember, die() exits the eval() setting $@ with the string given. You need to check the status of $@ outside your eval().
Updtate: see also LWP - timeout
In reply to Re: Workaround of Timeout on https
by starbolin
in thread Workaround of Timeout on https
by perlmonkdr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |