mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-17 03:55:44 +02:00
perl: various minor tweaks
- use generic names in the descriptions, since they can be directly matched to the corresponding tokens - move the -e example to appear right before the -M -e example - make description of -M -e example more explicit (to match the plain -e example)
This commit is contained in:
parent
b9bb46e6de
commit
1524aa95da
1 changed files with 8 additions and 8 deletions
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
> The Perl 5 language interpreter.
|
> The Perl 5 language interpreter.
|
||||||
|
|
||||||
- Parse and execute a `script.pl`:
|
- Parse and execute a Perl script:
|
||||||
|
|
||||||
`perl {{script.pl}}`
|
`perl {{script.pl}}`
|
||||||
|
|
||||||
- Parse and execute a `perl_statement`:
|
- Check syntax errors on a Perl script:
|
||||||
|
|
||||||
`perl -e {{perl_statement}}`
|
|
||||||
|
|
||||||
- Check syntax errors on `script.pl`:
|
|
||||||
|
|
||||||
`perl -c {{script.pl}}`
|
`perl -c {{script.pl}}`
|
||||||
|
|
||||||
- Import module before execution:
|
- Parse and execute a perl statement:
|
||||||
|
|
||||||
|
`perl -e {{perl_statement}}`
|
||||||
|
|
||||||
|
- Import module before execution of a perl statement:
|
||||||
|
|
||||||
`perl -M{{module}} -e {{perl_statement}}`
|
`perl -M{{module}} -e {{perl_statement}}`
|
||||||
|
|
||||||
- Run `script.pl` in debug mode using `perldebug`:
|
- Run a Perl script in debug mode, using `perldebug`:
|
||||||
|
|
||||||
`perl -d {{script.pl}}`
|
`perl -d {{script.pl}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue