|
Perl 6
Perl 6 IO Tablet: Revision 10
Overview - Chapter: 0:Intr, 1:Hist, 2:Design, 3:Var, 4:Op, 5:IO, 6:{}, 7:Sub, 8:OOP, 9:Rx - Appendices: A:Index, B:Tables, C:Cook, D:Delta, E:Best of, F:Links
1st law of language redesign: Everyone wants the colon for their particular syntax. CommentsSingle LineMulti LinePODNumber LiteralsA single underscore is allowed only between any two digits in a literal number, like: $people = 3_456_789; # same as 3456789 Radix Prefixes
0b binary - base 2, digits 0..1
0o ocatal - base 8, digits 0..7
0d decimal - base 10, digits 0..9
0x hexadecimal - base 16, digits 0..9,a..f (case insensitive)
General Radix Form:10<42> # same as 0d42 or 42 QuotingQuote WordsSingle QuotesDouble QuotesHeredocsFormatingperlThe .perl method is a built in Data::Dumper (pretty printer) which gives you structured data the way you write it in perl source code. fmtsprintfpackFormatsCommand LineFilesSocketsOverview - Chapter: 0:Intr, 1:Hist, 2:Design, 3:Var, 4:Op, 5:IO, 6:{}, 7:Sub, 8:OOP, 9:Rx - Appendices: A:Index, B:Tables, C:Cook, D:Delta, E:Best of, F:Links |