Getting Started#

Installation#

Download binaries and find documentation at perl.petamem.com.

First Script#

#!/usr/bin/env pperl
print "Hello from PetaPerl!\n";

Command Line Options#

Option

Description

-e 'code'

Execute code (modern features always on)

-c

Check syntax only

-w

Enable warnings

-v

Show version

--no-jit

Disable JIT compilation

--no-parallel

Disable auto-parallelization

--p5

Use p5 runtime (default)

--pp

Use pp runtime (native Rust parser + interpreter)

--cache

Enable bytecode caching

See CLI options for the full option list.

Notes#

  • Modern features (say, state, //, signatures) are always enabled — no use feature needed

  • XS modules are not supported; native Rust reimplementations are provided for common modules

  • -I is not supported; use PERL5LIB environment variable to add include paths