We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f40e8d commit f9032c0Copy full SHA for f9032c0
lib/Language/io.pod
@@ -33,6 +33,17 @@ refer to the string as the file object itself and thus slurp in its
33
contents directly. Note that the C<slurp> takes care of opening and closing
34
the file for you.
35
36
+=head2 Line by line
37
+
38
+Of course, we also have the option to read a file line-by-line.
39
40
+ for 'huge-csv'.IO.lines -> $line {
41
+ # Do something with $line
42
+ }
43
+ # or if you'll be processing later
44
+ my @lines = 'huge-csv'.IO.lines;
45
46
47
=head1 Writing to files
48
49
To write data to a file, again we have the choice of the traditional method
0 commit comments