Do you know where your variables are? | |
PerlMonks |
Re: Faster and more efficient way to read a file verticallyby LanX (Saint) |
on Nov 03, 2017 at 15:15 UTC ( [id://1202694]=note: print w/replies, xml ) | Need Help?? |
> but this takes enormous amount of time what does this mean? Maybe it's just file access on the HD? Please show some reference code. > Any ideas?
You can slurp the whole file and run a regex ... something like corrected my @col = ( $file =~ /^.{9}(.)/mg ); Using unpack might be even faster, but I'm no expert here.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|