in reply to Automating a search using perl
LWP::Simple, HTML::TreeBuilder.
Or avoid the screen scraping and use the recently announced Google SOAP API.