Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi.

I was wondering the following...

Is there an alternative to using SSI when it comes to inserting the content produced by a Perl script into an HTML file?

Thanks,
Ralph :)

Replies are listed 'Best First'.
Re: Alternative to SSI
by Masem (Monsignor) on Mar 25, 2001 at 02:56 UTC
    If the content is sufficiently 'pseudo-dyanmic', that is, changes once in a while and not due to direct user interaction, you can have a cron job which rewrites the HTML file with the perl output in place every 5 minutes or so.

    But I'm guessing, based on your question, that you're using a server that you don't admin, and the admin refuses to turn on SSI. In this case, you are basically SOL for any other solution beyond running your own server, or asking the admin nicely to turn on SSI, or to allow embedded perl or any other such features.


    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
      Or schedule a job on a machine you do control that produces the HTML and then FTPs the files to the machine you don't control.
Re: Alternative to SSI
by Yohimbe (Pilgrim) on Mar 25, 2001 at 03:23 UTC
    about a million alternatives. Search for "template" on CPAN. We use Template.pm, but thats only one of thousands of choices
    --
    Jay "Yohimbe" Thorne, alpha geek for UserFriendly