Quick jump:  What's new

 
Go to:
 
Weblog: documentation 
in Perl 6
Perl 6 Tablets

These are the Perl 6 Tablets, a comprehensive manual, aimed to support many different ways of learning. The content is nicely sorted and indexed and many links allow you to follow your interest freely. For a lightweight introduction, try the Perl 6 Tutorial. If its too easy, read the specs.


DISCLAIMER: This docs moved to tablets.perl6.org/ and no longer represent the current state.
Maybe this will vanish soon!


Preface and Introduction

Tablet 0: History

Tablet 1: Language Design

Tablet 2: Basic Syntax (Spaces, Comments, Literals, Quoting, Formatting)

Tablet 3: Variables (Sigils, Twigils, Assignment, Typing, Scopes)

Tablet 4: Operators (Comparison, Math, String, Logic, Metaops)

Tablet 5: IO (Command Line, Files, Sockets, Network, Misc.)

Tablet 6: Blocks (Conditions, Loops)

Tablet 7: Subroutines (Signatures, Modules)

Tablet 8: Objects (Classes, Roles)

Tablet 9: Regex (Rules, Grammars)

Tablet 10: Metaprogramming (Macros, DSL)


Appendix A: Index (all ops, builtins, methods and it terms, alphabetically ordered)

Appendix B: Tables, short reference (cheat sheets ans summary tables)

Appendix C: Cookbook (chunks of everyday Perl 5, translated into idiomatic Perl 6)

Appendix D: Perl 5-6 Delta

Appendix E: Exellence, Appetizer, best of tour

Appendix F: Links

Appendix G: Glossary

permalink
Perl 6 Tutorial

This tutorial was written for $foo Perl magazine and was published from winter 2007 until autumn 2009, later also in the wiki of the german Perl community. Much editing is being done afterwards to keep the content valid, because Perl 6 is still moving. To understand this tutorial you need basic Perl and general programming skills. Most terms are explained on the way. If you would like to deepen your knowledge, read the Perl 6 Tablets.

Part 1 : Basic Syntax

Part 2 : Operators for Scalars

Part 3 : Operators for Arrays

Part 4 : Hashes and control structures

Part 5 : Captures and Subroutines

Part 6 : Objects and Roles

Part 7 : Text, Rules and Grammars

Part 8 : Introspection and Metaprogramming

permalink
Documentation
permalink
WITCH

What Is This Character Here (WITCH)?

The Perl 6 WITCH is mostly a bunch of hyperlinks that allows one to find documentation for operators, special variables and other features when there is a "mystery character" whose usage is not understood.

Start by clicking on the character you do not understand the usage of. You will be brought to a page that tells how the character is used and/or can point you to compound operators or other uses for the character.

< left pointy
> right pointy
[ left boxy
] right boxy
{ left brace
} right brace
( left paren
) right paren
~ squiggle
+ plus
- dash
@ at
! bang
* star
| pipe
= equal
\ backslash
/ slash
_ underscore
« left french
» right french
^ hat
: colon
, comma
' tick
` backtick
; semicolon
f small f
h small h
o small o
p small p
q small q
x small x
Q big Q

In addition to a handy way to find out what an operator does, it also helps show how Perl 6 tries to allocate characters to uses that have similar or related semantics, by collecting a list of the various uses of a character in one place. Also mentioned are uses of characters from Perl5 and some other languages, so the index can also be used in a "how do I?" fashion.

Want to help build this? Make sure your favorite character, usage, or feature is documented... and that your favorite documentation is linked in. See the WITCH guidelines for some tips.

If any characters are being interpreted as markup where they shouldn't be, enclose them in {{}}.

permalink
Weblog Navigation
Loading...
Weblog Archives
  • Loading...

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: