in reply to How to write a CGI program to fetch data from mysql database and show in the browser with values in the text field?

Smells like homework ...

Anyhow, have a look at modules such as Catalyst or CGI::Application or any Templating module and combine it with e.g. DBIx::Class. It probably takes less than 20 lines of code to do what you want.

So show us some effort and we can help you further.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: How to write a CGI program to fetch data from mysql database and show in the browser with values in the text field?