my $ua = LWP::UserAgent->new; $ua->timeout(3); # Sets a three-second timeout