mirror of https://github.com/CrimsonTome/tldr.git
24 lines
414 B
Markdown
24 lines
414 B
Markdown
# perl
|
|
|
|
> The Perl 5 language interpreter.
|
|
|
|
- Parse and execute a Perl script:
|
|
|
|
`perl {{script.pl}}`
|
|
|
|
- Check syntax errors on a Perl script:
|
|
|
|
`perl -c {{script.pl}}`
|
|
|
|
- Parse and execute a perl statement:
|
|
|
|
`perl -e {{perl_statement}}`
|
|
|
|
- Import module before execution of a perl statement:
|
|
|
|
`perl -M{{module}} -e {{perl_statement}}`
|
|
|
|
- Run a Perl script in debug mode, using `perldebug`:
|
|
|
|
`perl -d {{script.pl}}`
|