- Perl 6 Deep Dive
- Andrew Shitov
- 64字
- 2021-07-03 00:05:44
The -e command
The -e option allows you to pass the whole program in a command line. This is useful for short programs that do a few actions or, for example, for small tests when you check how things work in Perl 6.
Run it with the program enclosed in quotes:
$ perl6 -e'say "Hello"'
And this is the result you will see:
Hello
推薦閱讀