larthana has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I just looking for commands to read the content of URL in my perl programming. I need to read the data provided in web page. Could any one help us?

Replies are listed 'Best First'.
Re: Read web content by URL in my program
by jettero (Monsignor) on Mar 28, 2007 at 10:52 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Read web content by URL in my program
by davorg (Chancellor) on Mar 28, 2007 at 10:59 UTC
Re: Read web content by URL in my program
by marto (Cardinal) on Mar 28, 2007 at 10:58 UTC
    Hi larthana,

    You should take a look at WWW::Mechnize, it is well documented and comes with some pretty good examples. Taking a look at HTML::TokeParser would also be a good idea, if you are looking to manipulate and of the data displayed on the pages.

    Hope this helps

    Martin
Re: Read web content by URL in my program
by siva kumar (Pilgrim) on Mar 28, 2007 at 11:26 UTC
    If you don't want to use LWP, you can use 'CURL' unix command to fetch data.
    Example :
    curl http://www.perlmonks.com > index.html
    Curl has several options for setting cookies,passing parameters,reading cookies etc.,
    For more info read
    man curl
    A reply falls below the community's threshold of quality. You may see it by logging in.