Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[Pair] elaborate on literals; add X<> anchors

  • Loading branch information...
commit 0da2f33dde76e9d88dc2d29b313c885bb59e95fb 1 parent c61ad58
@moritz moritz authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Pair.pod
6 lib/Pair.pod
@@ -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

0 comments on commit 0da2f33

Please sign in to comment.
Something went wrong with that request. Please try again.