You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
webperl-for/index.md

35 lines
831 B
Markdown

🕸️🐪 Welcome to WebPerl!
======================
\[ [Home](index.html) -
[Using WebPerl](using.html) -
[Building WebPerl](building.html) -
[Wiki](https://github.com/haukex/webperl/wiki) -
[GitHub](https://github.com/haukex/webperl) -
[Notes](notes.html) -
[Legal](legal.html) \]
WebPerl uses the power of [WebAssembly](https://webassembly.org/) and
[emscripten](http://emscripten.org/) to let you run Perl 5 in the browser!
**Notice: WebPerl is in beta.**
Some things may not work yet, and parts of the API may still change.
Your feedback is always appreciated!
```html
<script src="webperl.js"></script>
<script type="text/perl">
use WebPerl qw/js/;
print "Hello, Perl World!\n";
js('document')->getElementById('my_button')
->addEventListener("click", sub {
print "You clicked 'Testing!'\n";
} );
</script>
```