in reply to Re^2: Array size too big?
in thread Array size too big?

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!


The way forward always starts with a minimal test.