Skip to content

Commit

Permalink
list assignment, stubby listops
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 15, 2012
1 parent 783fa94 commit 7778a70
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions lib/operators.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1045,4 +1045,45 @@ This allows you to write
To generate all Fibonacci numbers up to but excluding 100.
=head1 List Prefix Precedence
=head2 item = (list assignment)
List assignment. Its exact semantics are left to the container type on the
left-hand side. See L<Array> and L<Hash> for common cases.
The distinction between item assignment and list assignment is determined by
the parser depending on the syntax of the left-hand side.
=head2 listop ...
The I<yada, yada, yada> operator or I<stub> operator. If it is the only
statement in a routine or type, it marks that routine or type as a stub
(which is significant in the context of pre-declaring types and composing
roles).
If the C<...> statement is executed, it calls L<&fail>, with the default
message C<stub code executed>.
=head2 listop !!!
If it is the only
statement in a routine or type, it marks that routine or type as a stub
(which is significant in the context of pre-declaring types and composing
roles).
If the C<...> statement is executed, it calls L<&die>, with the default
message C<stub code executed>.
=head2 listop ???
If it is the only
statement in a routine or type, it marks that routine or type as a stub
(which is significant in the context of pre-declaring types and composing
roles).
If the C<...> statement is executed, it calls L<&warn>, with the default
message C<stub code executed>.
=end pod

0 comments on commit 7778a70

Please sign in to comment.