- Perl 6 Deep Dive
- Andrew Shitov
- 144字
- 2021-07-03 00:05:37
Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, URLs, user input, and program output are shown as follows: "If the file does not exist, the $fh handle will be set to a Failure object."
A block of code is set as follows:
say 0.7 * (@street ==>
grep {.number %% 2} ==>
grep {.colour eq 'red'} ==>
grep {.renovation-year < 2013} ==>
map {.area * 3} ==>
reduce {$^a + $^b});
Any command-line input and output are shown in bold as follows:
$ perl6 –v
This is Rakudo version 2017.07 built on MoarVM version 2017.07
implementing Perl 6.c.
New terms and important words are shown in bold.
推薦閱讀