I have a page which contains this:
<a href="http://www.trial.com" title="yellow">Trial</a>
<a href="http://www.trial1.com" title="red">Trial2</a>
How can I get the anchor text, URL and title?
I want to have this output:
Trial, http://www.trial.com, yellow
Trial2, http://www.trial1.com, red
I have tried to use WWW::Mechanize as explained also here, but I do not know how to get the title in this way. Do you have any ideas?
The simple version, based on your question
This might be what you are looking for:
Happy coding, TIMTOWTDI