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 |
|---|---|
|
Execute code (modern features always on) |
|
Check syntax only |
|
Enable warnings |
|
Show version |
|
Disable JIT compilation |
|
Disable auto-parallelization |
|
Use p5 runtime (default) |
|
Use pp runtime (native Rust parser + interpreter) |
|
Enable bytecode caching |
See CLI options for the full option list.
Notes#
Modern features (
say,state,//, signatures) are always enabled — nouse featureneededXS modules are not supported; native Rust reimplementations are provided for common modules
-Iis not supported; usePERL5LIBenvironment variable to add include paths