From:                   Kojo Idrissa <[EMAIL PROTECTED]>
> This is probably a simple question, but I can't seem to find a simple
> answer.  I'm pretty new to Perl, but I'm learning.
> 
> I've written a small program that performs a calculation, and I want
> the result to be displayed on my home page.  I'd also like the
> calculation to be redone each time the page is viewed or reloaded.

I guess the easiest solution would be to make a tiny CGI script 
that will read the HTML from a file, copy it to output until it finds a 
marker, then print the results of the computations and then 
continue copying the rest of the file.

Or you could split the static HTML into two files, then you would 
read and copy to STDOUT the first file, then you'd write the 
computations and then copy the second file.

For later it would be better to install and start using one of the 
HTML template modules from CPAN (I'm usualy not doing 
CGI/mod_perl so I can't suggest names or compare the options).

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to