Programming Languages

Perl Playground

Perl 5 in the browser - regex, hashes, references, and the classic one-liners.

Runtime: WebPerl (Perl 5 in WebAssembly)

First run downloads ~4 MB of Perl WASM; subsequent runs are instant.

About this playground

Perl 5 compiled to WebAssembly via WebPerl. Real perl interpreter with the standard runtime library (strict, warnings, Data::Dumper, JSON, POSIX). Great for testing a regex, checking a one-liner, or working through classic Perl exercises without installing anything.

FAQs

Which Perl version?

WebPerl ships Perl 5.28. Most of the core language and standard library works - references, regex, hashes, sort, map, grep, closures.

How big is the download?

About 4 MB of WASM, lazy-loaded only when you open this page.

Do CPAN modules work?

Only pure-Perl modules bundled with the runtime. XS modules (with C code) need a real perl build and won't load here.

Other playgrounds