in reply to Mech::Perl and following links w/ null value

Hi,
Let me try to help you out for the query you posted.
First thing is the module you might be using is WWW::Mechanize as pointed right by 'Corion' and 'tobyink'.
Second point is, follow link will help you only when link is provided in href tag, for example:

<a name="hotels" id="hotels" href="http://www.name.com/hotels/"></a>

In your case, onclick is calling a function which points to Jaavascript function.
Whenever this happens a url is created or the data is posted on site.
To get right visibility you can use Firebug or LiveHttpHeader (addons for Firefox) to get exact method that site uses to form the query and posting it to a server.

Check if this preliminary information helps you, otherwise you can reply to my post.

Regards, Ajinkya