From kosala.atapattu at gmail.com Mon Jun 1 20:53:19 2009 From: kosala.atapattu at gmail.com (Kosala Atapattu) Date: Tue, 2 Jun 2009 06:53:19 +0300 Subject: [Qatar-pm] LWP Question Message-ID: <966e88ae0906012053r2d392276q88f7dd4497c0f003@mail.gmail.com> Hi Guys/Gals, I have a problem with LWP::Simple. As you may aware, LWP::Simple does not provide a simpler way to impose connection or read timeout for the request. But after little bit googling (http://www.perlmonks.org/?node_id=168684) I found that, there is a workaround to export LWP::UserAgent object from the LWP::Simple. sub check_http { my ($url, $match) = @_; use LWP::Simple qw($ua get); $ua->timeout (20); my $content = get ($url) or return 0; return 1 if ($content =~ /$match/); return 0; } But the this code is not working, or giving unexpected results, any idea why? -- Kosala -------------------------------------------- Disclaimer: Views expressed in this mail are my personal views and they would not reflect views of the employer. -------------------------------------------- blog.kosala.net www.linux.lk/~kosala/ www.kosala.net From robert at robertblackwell.com Sat Jun 27 08:33:59 2009 From: robert at robertblackwell.com (Robert Blackwell) Date: Sat, 27 Jun 2009 11:33:59 -0400 Subject: [Qatar-pm] YAPC::Qatar Message-ID: <4A463BE7.6070500@robertblackwell.com> Hello, I have heard rumors that you may want to host YAPC::Qatar. I just finished hosting YAPC::NA, http://yapc10.org. If you would like any help please just ask. Thank you Robert Blackwell