in reply to More efficient way to exclude footers
The footer problem is a bit trickier, but after the header you could first just push every row into an array as a separate string element. Then you'd know exactly how many lines you're dealing with, and you can parse only the elements that lead up to @array[ scalar @array - $numFooters ]while(<INPUT>) { $linecount++ ; next if $linecount <= $numHeaders;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: More efficient way to exclude footers
by AnomalousMonk (Archbishop) on Aug 19, 2015 at 18:18 UTC | |
|
Re^2: More efficient way to exclude footers
by Laurent_R (Canon) on Aug 19, 2015 at 18:59 UTC |