Home > Archive > PERL Beginners > January 2006 > How to display the output of perl program on a web browser
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to display the output of perl program on a web browser
|
|
| Kilaru Rajeev 2006-01-25, 6:57 pm |
| Hi,
I'm working on unix system with perl. I'm getting some data from database
using DBI module.
I want to display its output on a web browser like Netscape or firefox.
Please help me in this.
thanks and regards,
Rajeev kilaru
| |
| Chas Owens 2006-01-25, 6:57 pm |
| snip
> I've a web server and all. i dont know about static and dynamic data.
snip
If you want static data (ie. reports that don't change) you just need
to write your report as html and drop it in the right directory (one
that the web server is reading). If you want a dynamic report (one
generated at the time the link is clicked) you will need to use the
CGI module.
| |
| Xavier Noria 2006-01-25, 6:57 pm |
| On Jan 25, 2006, at 20:43, kilaru rajeev wrote:
> I'm working on unix system with perl. I'm getting some data from
> database
> using DBI module.
> I want to display its output on a web browser like Netscape or
> firefox.
> Please help me in this.
If you don't need to produce this for remote access the easiest
solution is simply to write a HTML file to the disk. Then you can
open the file with a web browser.
Otherwise, the easiest solution is to set up a web server and write a
CGI. There's plenty of CGI tutorials out there. You could have a
glance at chapter 12 of Beginning Perl for instance:
http://learn.perl.org/library/begin...3145_Chap12.pdf
-- fxn
|
|
|
|
|