in reply to Embedded perl in html

Thats the issue with the <script> tag. It depends on browser implementations. There isn't a browser I know of that has perl as an implemented script. So if you want client side perl you'll have to use some other method of distribution. Like CPAN.

Replies are listed 'Best First'.
Re^2: Embedded perl in html
by Joost (Canon) on Apr 12, 2007 at 20:21 UTC
Re^2: Embedded perl in html
by Anonymous Monk on Apr 12, 2007 at 20:23 UTC
    ok, here comes the newbie in me ;-) So this directive is stating that the processing is done on the client side? Is there any (legitimate) way to have embedded perl i nhtml execute on the server side?
      So this directive is stating that the processing is done on the client side?

      Since this directive is found in the HTML that the browser processes, it's for the client side. Otherwise you wouldn't see it, because it would have already been processed on the server side :-)

      For server side embedding perl in HTML, see e.g. HTML::Mason and eperl, for indirect embedding, see e.g. HTML::Template and Template::Manual::Intro.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      With apache you can either use simple CGI scripts and the CGI module. If you're looking for a more advanced way to do things there is mod_perl, an countless modules built on it on CPAN. I'm not sure what you're trying to do with server side scripting so I can't point you to a more specific tutorial.