Run Perl in the browser with WebPerl!

View the Project on GitHub haukex/webperl

[ Using - Building - 🦋 - Notes - Legal - Wiki ]

Welcome to WebPerl!

WebPerl uses the power of WebAssembly and Emscripten to let you run Perl in the browser!

WebPerl does not translate your Perl code to JavaScript, instead, it is a port of the perl binary to WebAssembly, so that you have the full power of Perl at your disposal!

Notice: WebPerl is very much in beta. Some things may not work yet, and parts of the API may still change. Your feedback is always appreciated!

New: Experimental Perl 6 Support

<script src="webperl.js"></script>
<script type="text/perl">

print "Hello, Perl World!\n";  # goes to JavaScript console by default

	->addEventListener('click', sub {
		js('window')->alert("You clicked the button!");
	} );

For web applications written with WebPerl, see:

Quick Start

You may also host the contents of the above ZIP archive on a webserver of your choice, or some browsers will support opening the files locally; both are described in Serving WebPerl. (Note: In webperl_demo.html, you’ll likely see “AJAX Failed!”, which is to be expected since your webserver won’t know how to handle the example AJAX request.)

Have fun!

Copyright (c) 2018 Hauke Daempfling (haukex@zero-g.net) at the Leibniz Institute of Freshwater Ecology and Inland Fisheries (IGB), Berlin, Germany, http://www.igb-berlin.de

Please see the “Legal” page for details.

You can find the source for this page at https://github.com/haukex/webperl/blob/gh-pages/index.md