mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
24 lines
391 B
Markdown
24 lines
391 B
Markdown
![]() |
# perl
|
||
|
|
||
|
> The Perl 5 language interpreter.
|
||
|
|
||
|
- Parse and execute a `script.pl`:
|
||
|
|
||
|
`perl {{script.pl}}`
|
||
|
|
||
|
- Parse and execute a `perl_statement`:
|
||
|
|
||
|
`perl -e {{perl_statement}}`
|
||
|
|
||
|
- Check syntax errors on `script.pl`:
|
||
|
|
||
|
`perl -c {{script.pl}}`
|
||
|
|
||
|
- Import module before execution:
|
||
|
|
||
|
`perl -M{{module}} -e {{perl_statement}}`
|
||
|
|
||
|
- Run `script.pl` in debug mode using `perldebug`:
|
||
|
|
||
|
`perl -d {{script.pl}}`
|