Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[basics] be more verbose about IO.lines. Noted by codyFendant++
  • Loading branch information
moritz committed Aug 18, 2010
1 parent 1ec2cc5 commit a2ad884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basics.pod
Expand Up @@ -194,7 +194,8 @@ X<block>
C<for> produces a loop that runs the I<block> delimited by curly brackets and
containing C<...> once for each item of the list, setting the variable C<$line>
to the current value of each iteration. C<$file.lines> produces a list of the
lines read from the file F<scores>.
lines read from the file F<scores>, starting with the line where the previous
calls to C<$file.get> left off, and going all the way to the end of the file.

During the first iteration, C<$line> will contain the string C<Ana vs Dave |
3:0>. During the second, C<Charlie vs Beth | 3:1>, and so on.
Expand Down

0 comments on commit a2ad884

Please sign in to comment.