mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
raku: add page (#21598)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# raku
|
||||
|
||||
> Rakudo Raku (formerly Perl 6) programming language interpreter.
|
||||
> See also: `perl`.
|
||||
> More information: <https://manned.org/raku>.
|
||||
|
||||
- Execute a Raku script:
|
||||
|
||||
`raku {{path/to/script.raku}}`
|
||||
|
||||
- Execute a single Raku command:
|
||||
|
||||
`raku -e "{{command}}"`
|
||||
|
||||
- Check syntax only (runs BEGIN and CHECK blocks):
|
||||
|
||||
`raku -c {{path/to/script.raku}}`
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
`raku`
|
||||
|
||||
- Load a module before running the program:
|
||||
|
||||
`raku -M {{module_name}} {{path/to/script.raku}}`
|
||||
|
||||
- Add a path to the module search path:
|
||||
|
||||
`raku -I {{path/to/module_directory}} {{path/to/script.raku}}`
|
||||
|
||||
- Extract and display documentation from a script:
|
||||
|
||||
`raku --doc {{path/to/script.raku}}`
|
||||
Reference in New Issue
Block a user