in reply to How to use MySQL from CGI?
The only difference between a "command line" and a "cgi" script, at least for 99% of perl scripts, is you print html instead of just printing the data. It should be trivial to generalize from a command line example to a cgi example and vice versa.