Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cleanup variant
  • Loading branch information
coke committed Jul 9, 2018
1 parent bc7a753 commit 86844da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/Language/101-basics.pod6
Expand Up @@ -120,12 +120,12 @@ C<Array> or a C<Hash>; the C<$> sigil signifies that it should be
treated as a single value, even in a context that expects multiple
values (as with an C<Array> or C<Hash>).
=head3 X<C<file handle>> and X<C<assignment>>
=head3 X<C<filehandle>> and X<C<assignment>>
The built-in function C<open> opens a file, here named F<scores>, and returns a
I<file handle>--an object representing that file. The equality sign C<=>
I<assigns> that file handle to the variable on the left, which means that
C<$file> now stores the file handle.
I<filehandle>--an object representing that file. The equality sign C<=>
I<assigns> that filehandle to the variable on the left, which means that
C<$file> now stores the filehandle.
=head3 X<C<string literal>>
Expand All @@ -142,7 +142,7 @@ the argument provided to C<open>.
=head3 X<C<array>>, X<C<method>> and X<C<invocant>>
The right-hand side calls a I<method> --a named group of behavior-- named C<get>
on the file handle stored in C<$file>. The C<get> method reads and returns
on the filehandle stored in C<$file>. The C<get> method reads and returns
one line from the file, removing the line ending. If you print the contents of C<$file>
after calling C<get>, you will see that the first line is no longer in there. C<words> is also a method,
called on the string returned from C<get>. C<words> decomposes its
Expand Down

0 comments on commit 86844da

Please sign in to comment.