in reply to pressing buttons in HTML files
Also see WWW::Mechanize for simulating a browser from Perl, and Selenium for the Selenium web application test system.