Hi, see my second example, showing how to get an array of the lines with Path::Tiny::lines() (which you should probably use with the chomp option if you are planning to do more than simply print the lines):
use strict; use warnings; use Path::Tiny; my $filename = "foobar.txt"; my @lines = path( $filename )->lines({ chomp => 1 }); # done!
In reply to Re^3: Array size too big?
by 1nickt
in thread Array size too big?
by JillB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |