On Tue, 19 May 2020 05:22:09 -0400, "Sven Willenbuecher via RT"
<bug-Text-CSV_XS@rt.cpan.org> wrote:
Show quoted text> I thought changing the severity to "wishlist" makes "a bug" a feature
> request. Next time I know when to use CPAN RT and when to use GitHub
> issue tracker.
You are probably right, but on GitHub, there is more room for others to
chime in with ideas and feedback on feature requests.
In the case you described, I am positive that the request is out of
scope of the parser itself, as it will for sure cause an unacceptable
slowdown of the normal parsing: the procedure you describe will need a
lookahead. This will require additional buffering and processing, which
will be a strain on processing streams and will also slowdown regular
parsing.
My suggestion would be to add the steering data in meta-files, certainly
if you are using this with DBD::CSV, as that supports multiple locations
by the use of f_dir_search (alongside f_dir). In this, meta-files are no
more than other CSV files in the set of locations that can be queried to
fetch what would have been in the now clean data-files.
So, I think I will reject this request for the parser itself, as it will
be better to move this to a higher level. You might consider subclassing
DBD::CSV or make your own version of it.
--
H.Merijn Brand
http://tux.nl Perl Monger
http://amsterdam.pm.org/
using perl5.00307 .. 5.31 porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email https://tux.nl http://www.test-smoke.org
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/