in reply to im trying to get my perl script to post a CGI query

First of all, you should use code tags in your posts, so other monks could read (and response them)
On the other hand
my $f = HTTP::Request::Form->new($forms<A HREF="/index.pl?node=0&lastn +ode_id=126088">0</A>, $url);
seem not correct, but I suspect you haven't posted all your code.
Hopes