Skip to content

Commit

Permalink
Fix a left-/right-hand-side mix-up re: assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
softmoth committed Aug 13, 2012
1 parent 438dc78 commit 9ee37cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/variables.pod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Examples:
my %hash = London => 'UK', Berlin => 'Germany';
There are two types of assignment, I<item assignment> and I<list assignment>.
Both use the equal sign C<=> as operator. The distinction wheter a C<=>
Both use the equal sign C<=> as operator. The distinction whether an C<=>
means item or list assignment is based on the syntax of the left-hand side.
(TODO: explain in detail, or do that in L<operators>).
Expand All @@ -42,7 +42,7 @@ List assignment leaves the choice of what to do to the variable on the left.
For example L<Array> variables (C<@> sigil) empty themselves on list assignment, and then
put all the values from the right-hand side into themselves. Contrary to item
assignment, it means that the type of the variable on the left always stays
C<Array>, regardless of the type of the left-hand side.
C<Array>, regardless of the type of the right-hand side.
Note that the item assignment has tighter precedence than list assigment, and
also tighter than the comma. See L<operators> for more details.
Expand Down

0 comments on commit 9ee37cf

Please sign in to comment.