chriso has asked for the wisdom of the Perl Monks concerning the following question:
One of the variables passed to the script is $course_desc which in this example represents the value 243desc.txt. The placeholder %%course_desc%% is being substituted with the variable $course_desc.
The shtml document before being read into the perl script has the following line:
<!--#include virtual="/crs_desc/%%course_desc%%"/ -->
The problem I ran into is that when perl prints out @htmldoc, it does not parse the ssi command. When you view the html code printed by the perl script it shows the following line:
<!--#include virtual="/crs_desc/243desc.text"/ -->
It interpretes the statement as if it was an html comment, so it doesn't print anything.
I have a variety of external documents which I need to import into the html template, depending on the value of the $course_desc variable. Is there a way to get SSI to work with perl, OR, is there another way of creating the dynamic content using external documents besides using SSI?
I have tried SSI enabling both the cgi-bin directory and the shtml document directory and that doesn't work. I know its not an SSI configuration problem.
Thanks in advance. Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and SSI
by nite_man (Deacon) on May 02, 2003 at 12:06 UTC | |
|
Re: Perl and SSI
by The Mad Hatter (Priest) on May 02, 2003 at 12:03 UTC | |
|
Re: Perl and SSI
by glivings (Scribe) on May 02, 2003 at 12:16 UTC | |
by Anonymous Monk on May 02, 2003 at 13:23 UTC | |
by glivings (Scribe) on May 02, 2003 at 14:42 UTC | |
|
Re: Perl and SSI
by Aristotle (Chancellor) on May 02, 2003 at 14:28 UTC |