>
> Can somebody help me for telling steps that embperl works. I saw a code in
> the example page like:
>
> [$ while ($k, $v) = each (%ENV) $]
> [+ $k +] = [+ $v +]
> [$ endwhile $]
>
> How can I use it? Should I save it as test.pl and compile with command
> perl test.pl? I went over the embperl web but still don't understand...
>
I you like to use it under mod_perl, then you have to modify your
httpd.conf:
For example (Taken from the "perldoc HTML::Embperl"):
SetEnv EMBPERL_DEBUG 2285
Alias /embperl /path/to/embperl/eg
<Location /embperl/x>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
Now restart your server and you can request for example a document
"/path/to/embperl/eg/x/loop.htm" with
http://localhost/embperl/x/loop.htm
Gerald