Skip to main content

Perl

Perl is a highly capable, feature-rich programming language with over 30 years of development. It is popular for text processing, system administration, web development, and more.

LiveCodes runs Perl in the browser using Perlito5, a Perl to JavaScript compiler. Perl code is compiled to JavaScript and executed in the browser.

Usage​

Demo​

show code
import { createPlayground } from 'livecodes';

const options = {
"template": "perl"
};
createPlayground('#container', options);

JavaScript Interoperability​

Perl code can interact with JavaScript using JS::inline() to execute JavaScript expressions and access the DOM:

use strict;
my $name = "Perl";
JS::inline('document.body.innerHTML') = "Hello, $name";

Language Info​

Name​

perl

Aliases​

pl

Extensions​

.pl, .pm

Editor​

script

Compiler​

Perlito5

Version​

Perlito5: v9.028

Code Formatting​

Not supported.

Starter Template​

https://livecodes.io/?template=perl