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 one-liner |
| Like |
| Prepend |
| Check syntax only |
| Enable warnings |
| Show version |
| Show configuration, |
| Disable JIT compilation |
| Disable auto-parallelization |
See CLI options for the full option list.
Notes#
Defaults match perl: modern features (
say,stateand friends) are enabled byuse v5.42;in scripts or-Efor one-linersXS modules are not supported; native Rust reimplementations are provided for common modules
Module search paths work as in perl:
-Iand thePERL5LIBenvironment variable are honored;PPERL5LIBadditionally provides pperl-only paths (see CLI options)