That's an SSI (Server Side Include) command, not specifically a Perl command. You'll need to indicate to your web server somehow that it should parse the page and execute SSI commands. Often, this is done by enabling an SSI handler for pages with the shtml extension.
Basically, this is a web server configuration question, since the SSI command shows up in the HTML source. | [reply] |
The path in your SSI statement absolutely must be a relative path. Remove the leading slash and use some combination of .. 's to get to your perl script. I have run into this problem several times and it's fairly frustrating!
Update: You must also make sure the file has an .shtml extension, and that you have configured Apache to use the Includes directive on that directory. Test a normal SSI include with --#include virtual="test.html" -- to make sure SSI is working. | [reply] |
.shtml is not absolutely necessary if you fiddle
with file extensions in your apache setup.
Also available is XBitHack which only requires you set the
.html file as executable chmod w+x
and apache will ssi process it just fine.
--
Jay Thorne, alpha geek for UserFriendly
| [reply] |
Change the file to index.shtml and it will work.
--BigJoe
Learn patience, you must. Young PerlMonk, craves Not these things. | [reply] |