Perl · online compiler

Run Perl online

Run Perl 5 online — the classic scripting swiss army knife.

Version
Firecracker microVM live per-test verdicts multi-file compile

Perl 5 outlived every announcement of its death. Perfect regex, deep CPAN library, and script glue everywhere Linux runs. Ops teams still write it; genomics research still writes it; log-mining pipelines still write it.

ls-judge runs Perl 5 inside a Firecracker microVM.

Starter code

What you get in Perl

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

perl
Perl 5
my $n = <STDIN>;
chomp $n;
print $n * 2, "\n";
stdin →21
expected →42
FAQ

Common questions about Perl on ls-judge

Which Perl?
Perl 5.x — a recent stable.
CPAN?
No network — core modules only.
Perl 6 / Raku?
See /lang/raku for Raku (formerly Perl 6).
Free?
Yes.
Further reading
Also try