in reply to Reaped: a guru can write this in 5 minutes, please help(WWW::Mechanize))
I'll do it for $20/minute ;)