Posted on 2007-10-15 19:01:14-07 by guru
getting the error Can't call method
Hi, I am trying to retrieve all the links on a web page. the code i am using is: my @links=$ie->getAllLinks()->linkText(); I get the below error: Can't call method "linkText" without a package or object reference. Please help me with this as I am unable to get the links. However in scalar context I get the exact number of links on the page. Thanks in advance
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.