Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add is copy example to lines
  • Loading branch information
gfldex committed May 13, 2016
1 parent 64b6a26 commit 299a655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Type/Cool.pod
Expand Up @@ -1288,6 +1288,10 @@ my @lines = 'huge-csv'.IO.lines;
Without any arguments, sub C<lines> operates on
C<$*ARGFILES>, which defaults to C<$*IN> in the absence of any filenames.
To modify values in place use C<is copy> to force a writeable container.
for $*IN.lines -> $_ is copy { s/(\w+)/{$0 ~ $0}/; .say }
=head2 method words
Defined as:
Expand Down

0 comments on commit 299a655

Please sign in to comment.