in reply to Faster and more efficient way to read a file vertically
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 @col10 = /^.{9}(.)/g on it (with the appropriate /s or /m modifier of course)
corrected my @col = ( $file =~ /^.{9}(.)/mg );
Using unpack might be even faster, but I'm no expert here.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Faster and more efficient way to read a file vertically
by Anonymous Monk on Nov 03, 2017 at 15:19 UTC | |
by pryrt (Abbot) on Nov 03, 2017 at 16:15 UTC | |
by LanX (Saint) on Nov 03, 2017 at 15:26 UTC |