hemant.bhargava7 has asked for the wisdom of the Perl Monks concerning the following question:

Champs .. What does follow_link returns in WWW::Mechanize .. ? The scenerio is:- I am having a text-link 5 times on web page. and i want to crawl the all links .. Can you guyz suggest me the methods to do it .. Back to you ..

Replies are listed 'Best First'.
Re: Follow_link returns .. ?
by lakshmananindia (Chaplain) on Apr 25, 2009 at 06:06 UTC

    Refer WWW::Mechanize

    Returns the result of the GET method (an HTTP::Response object) if a link was found. If the page has no links, or the specified link couldn't be found, returns undef.

    --Lakshmanan G.

    The great pleasure in my life is doing what people say you cannot do.


      ...or even perldoc WWW::Mechanize - AFAIK, the module doesn't have a man(1) page.

      A user level that continues to overstate my experience :-))
        At least on CentOS 5 & FreeBSD, when a module is installed "the traditional way", a man page is also installed.
      Thanks a lot dude .. That helped me .. Got my solution .. :)