File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ the file for you.
36
36
37
37
Of course, we also have the option to read a file line-by-line.
38
38
39
- for 'huge-csv'.IO.lines -> $line {
40
- # Do something with $line
41
- }
42
- # or if you'll be processing later
43
- my @lines = 'huge-csv'.IO.lines;
39
+ for 'huge-csv'.IO.lines -> $line {
40
+ # Do something with $line
41
+ }
44
42
43
+ # or if you'll be processing later
44
+ my @lines = 'huge-csv'.IO.lines;
45
45
46
46
= head1 Writing to files
47
47
Original file line number Diff line number Diff line change @@ -705,11 +705,14 @@ the list of lines.
705
705
This method can be used as part of an C < IO::Path > to process a file
706
706
line-by-line, since C < IO::Path > objects inherit from C < Cool > , e.g.:
707
707
708
- for 'huge-csv'.IO.lines -> $line {
709
- # Do something with $line
710
- }
711
- # or if you'll be processing later
712
- my @lines = 'huge-csv'.IO.lines;
708
+ = begin code
709
+ for 'huge-csv'.IO.lines -> $line {
710
+ # Do something with $line
711
+ }
712
+
713
+ # or if you'll be processing later
714
+ my @lines = 'huge-csv'.IO.lines;
715
+ = end code
713
716
714
717
= head2 method words
715
718
You can’t perform that action at this time.
0 commit comments