more useful options | |
PerlMonks |
Re: Workaround of Timeout on httpsby starbolin (Hermit) |
on May 14, 2008 at 16:13 UTC ( [id://686558]=note: print w/replies, xml ) | Need Help?? |
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 s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}
In Section
Seekers of Perl Wisdom
|
|