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?
I want to get all links (<a href=’http://.*’) from a web page using perl,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.