in reply to LWP::Simple hanging (maybe?)
#!/usr/bin/perl -w use strict; use LWP::UserAgent; my $agt = LWP::UserAgent->new(); $agt->timeout( 10 ); my $res = $agt->get( 'http://www.perlmonks.org' ); if( $res->is_success ) { print " ... ok\n"; } else { print " ... failed: ", $res->code, "\n"; } [download]