|
Perl 6
Perl 6 IO Tablet: Revision 17
Overview - Chapter: 0:History, 1:Design, 2:Basics, 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 Number LiteralsKonverting into numerical context means still: take from left to right all digits and other characters, up to the first char that clearly don't belong to a number definition and stop there. A single underscore is allowed only between any two digits in a literal number, like: $people = 3_456_789; # same as 3456789 Radix Prefixes0b binary - base 2, digits 0..1 General Radix Form:10<42> # same as 0d42 or 42 Scientific Notation$float = 60.2e23 # becomes automatically 6.02e24 Rational NumberComplex Number-3-6.02E-23i QuotingQ /.../; Quote Wordsqw/.../ <<>> Single Quotes'' Double Quotes"" HeredocsQ :to 'EOT' FormatingperlThe .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:History, 1:Design, 2:Basics, 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 |