How can I make an HTTP GET request from Perl?

后端 未结 4 1171
既然无缘
既然无缘 2021-01-22 03:07

I\'m trying to write my first Perl program. If you think that Perl is a bad language for the task at hand tell me what language would solve it better.

The program tests

4条回答
  •  佛祖请我去吃肉
    2021-01-22 03:28

    As far as the whole problem description goes, I would use WWW::Mechanize. Mechanize is a subclass of LWP::UserAgent that adds stateful behavior and HTML parsing. With mech, you can just do $mech->get($url_of_index_page), and then use $mech->find_all_links(criteria) to select the links to follow.

提交回复
热议问题