perl6 man page
perl6 — Rakudo Perl 6 Compiler With no arguments, enters a REPL. With a Note that only boolean single-letter options may be bundled. The supported values for For Rakudo's behavior can be tweaked by a (growing) number of environment variables; this section attempts to document all those currently in use. Written by the Rakudo contributors, see the CREDITS file. This manual page was written by Reini Urban, Moritz Lenz and the Rakudo contributors.
perl6 [switches] [--] [programfile] [arguments]
"[programfile]" or the
"-e" option, compiles the given program and by default also executes the compiled code.
-c check syntax only (runs BEGIN and CHECK blocks)
--doc extract documentation and print it as text
-e program one line of program, strict is enabled by default
-h, --help display this help text
-n run program once for each line of input
-p same as -n, but also print $_ at the end of lines
-I path adds the path to the module search path
-M module loads the module prior to running the program
--target=[stage] specify compilation stage to emit
--optimize=[level] use the given level of optimization (0..3)
--encoding=[mode] specify string encoding mode
-o, --output=[name] specify name of output file
-v, --version display version information
--stagestats display time spent in the compilation stages
--ll-exception display a low level backtrace on errors
--profile write profile information as HTML file (MoarVM)
--profile-filename provide a different filename (also allows .json)
--doc=[module] Use Pod::To::[module] to render inline documentation.
Target Backend Description
====== ======= ===========
parse all a representation of the parse tree
ast all an abstract syntax tree (before optimizations)
optimize all an abstract syntax tree (after optimizations)
mbc MoarVM MoarVM byte code
jar JVM JVM archive
"--profile-filename", specifying a name ending in
".json" will write a raw JSON profile dump. The default if this is omitted is
"RAKUDOLIB" is evaluated first.
Error Message Verbosity and Strictness
"is DEPRECATED" trait.
"IO::Spec::Unix.tmpdir" method will return
$TMPDIR if it points to a directory with full access permissions for the current user, with a fallback default of
"IO::Spec::Win32" use more Win32-appropriate lists which also include the
"%TMP%" environment variables.
"IO::Spec::Unix.path" method splits
$PATH as a shell would; i.e. as a colon-separated list.
"IO::Spec::Cygwin" inherits this from
"IO::Spec::Win32.path" will read the first defined of either
"%Path%" as a semicolon-delimited list.
With no arguments, enters a REPL. With a
Note that only boolean single-letter options may be bundled.
The supported values for
Rakudo's behavior can be tweaked by a (growing) number of environment variables; this section attempts to document all those currently in use.
Written by the Rakudo contributors, see the CREDITS file.
This manual page was written by Reini Urban, Moritz Lenz and the Rakudo contributors.