Unless you have control over the CGI that's generating the HTML, you have to use something like
LWP::Simple to fetch the HTML, and maybe something to parse it.
Text::CSV_XS is a fast and reliable way to generate comma-separated text that can be easily imported into Excel. Just make sure you strip out any newlines from STDIN (s#\r\n##g or something) because these will confuse
Text::CSV_XS .