Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Pair] elaborate on literals; add X<> anchors
  • Loading branch information
moritz committed Aug 18, 2012
1 parent c61ad58 commit 0da2f33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Pair.pod
Expand Up @@ -8,12 +8,18 @@ Consists of two parts, a I<key> and a I<value>. C<Pair>s can be seen as the
atomic units in C<Hash>es, and they are also used in conjunction with named
arguments and parameters.
X<:> X<< => >> X<:!>
There are three syntaxes for C<Pair>s:
'key' => 'value' # this...
:key<value> # ...means the same as this
:$foo # short for foo => $foo
Variants of this are
:key # same as key => True
:!key # same as key => False
The immutable version of a C<Pair> is an C<Enum>.
=head1 Methods
Expand Down

0 comments on commit 0da2f33

Please sign in to comment.