tags:

views:

109

answers:

3

I want to write a Perl script which calls a URL with certain parameters.

+6  A: 

Have a look at the LWP::UserAgent module on CPAN.

eugene y
Or LWP::Simple if you just need something quick and easy.
Cfreak
+8  A: 
use LWP::Simple;
my $result = get($url);
Alex Howansky
+12  A: 

You can use LWP::UserAgent, or you can use LWP::Simple if you don't need an object. If you are going to be using the results of the web page to crawl to other pages, such as to extract URLs or get URLs of images, you'll want to use WWW::Mechanize, which is a wrapper around LWP::UserAgent that handles all the HTML parsing for you.

Andy Lester
Thanks for the link action, Alan. I'd have linked to them myself, but I had a hot game of Super Mario Galaxy 2 with my daughter I had to get back to.
Andy Lester