Look at Tk::IO
In reply to Re^4: LWP::UserAgent timeout by tybalt89 in thread LWP::UserAgent timeout by IB2017