in reply to Cant get Mechanize to work.

See WWW::Mechanize. ->find_link is a method of WWW::Mechanize, not of HTTP::Headers. ->get returns a HTTP::Response object, but that's of little interest to you.

Replies are listed 'Best First'.
Re^2: Cant get Mechanize to work.
by ufizo (Initiate) on Jul 10, 2011 at 09:16 UTC
    yes i understand that, but the code that i am running is giving me a error pointing to HTTP::Header !

      That happens because you are using the object in ways not documented by the WWW::Mechanize documentation. Please re-read the documentation on ->get and what the method returns. You have the following code:

      $page = $mech->get("http://www.google.com");

      This usage is nowhere documented.

      Also see the documentation on ->find_link. It shows the following example:

      $mech->find_link( n => $number );

      Note how the method is called on a variable named $mech.

        Thank you for pointing that out. I understand my mistake. Thank you.