everbox
everbox

Reputation: 1199

How to get all links in a webpage using perl?

I want to get all links (<a href='http://.*') from a web page using perl, which module should I use? Or just use regex myself?

Upvotes: 2

Views: 1138

Answers (1)

Raghuram
Raghuram

Reputation: 3967

Are you using WWW::Mechanize to get the web page? If yes then you can use the function $mech->links() which is in that module to get all the links.

Upvotes: 5

Related Questions