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

Hello to all.
I'm working in windows and i'm using indigoperl. My *.shml work if i just include other *.html,for example

but if i put this
<!--#perl sub="sub { print \"hello, world!\"; }" --> give ...
an error occurred while processing this directive but the mod perl is install!!! It includes the *.html!!
In dos shell i run
ipm query
and the modules installed are #Installed packages
Archive-Tar-1.08
Compress-Zlib-1.33
DBD-mysqlPP-0.04
DBI-1.41
HTML-Parser-3.35
IO-Zlib-1.01
Net-MySQL-0.08
TimeDate-1.16
URI-1.30
Win32-API-0.41
libwin32-0.191
libwww-perl-5.76
mod_perl-1.99_12
.................
can you help me resolving this strange(or not ;) ) error? thanks.

Replies are listed 'Best First'.
Re: SSI problem...
by ikegami (Patriarch) on Jun 07, 2005 at 18:51 UTC

    In HTML (and SSI mimics HTML), quotes are not escaped with a slash, they're encoded as &quot;. Try

    <!--#perl sub="sub { print &quot;hello, world!&quot;; }"

    Update: Removed the extra e from &quote;.

      Thanks for the advise... but still not work :(
        Do you get the same error, or something different? Do you know where SSI is documented so I can take a look?
        It has been brought to my attention that it should be &quot;, not &quote;. silly me! I've fixed my original post.
Re: SSI problem...
by perrin (Chancellor) on Jun 07, 2005 at 20:17 UTC
    What does it say in the server's error_log?

        That means that Apache::SSI is not getting loaded or used. Try commenting out

        AddHandler server-parsed .shtml

        (the non-Perl SSI) from your web server's configuration file and adding

        <Files *.shtml> SetHandler perl-script PerlHandler Apache::SSI </Files>

        (the mod_perl SSI) in its place.