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

Hi monks,

Does anyone know of, or have any examples of webperl that show how to manipulate the DOM and set call backs to perl subs for browser events?

I tried google around but all the examples I could find were just basic things like scripts that run at a set position of a HTML file and have their output embedded into the file.

Thanks!

  • Comment on webperl - DOM manipulation and event example

Replies are listed 'Best First'.
Re: webperl - DOM manipulation and event example
by haukex (Archbishop) on Dec 08, 2022 at 22:45 UTC

    In my talk on WebPerl at around the 14 minute mark (slide 12 here) I show how with WebPerl you can access the same APIs as in JavaScript. For a much more complex example, the WebPerl Regex Tester is written in (Web)Perl, see the source code here.

      Thanks! I will watch the watch the whole thing. WebPerl looks incredibly underrated!