Reputation: 1199
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
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