in reply to Perl CGI

It sounds like you want to automate testing a web interface. Use a module like WWW::Mechanize (if you don't need JavaScript support) or WWW::Mechanize::Firefox (if you do need JavaScript). See Installing Modules from the tutorials section, and post back if you get stuck.