Any suggestions?
If you need to do something once, do it only once. That includes populating the database and preparing the query. You might even be able to load the CSV file into a database with a bulk loader program and skip that step in Perl.
From a design point of view, your function does way too much, which is why it does the same work over and over, and that's one reason it's too slow.
Improve your skills with Modern Perl: the free book.
In reply to Re: Best way to match a hash with large CSV file
by chromatic
in thread Best way to match a hash with large CSV file
by alphavax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |