Count Lines in CSV Using Perl

We have hundreds of CSV files, and need to know how many lines are in each one. A simple way to count lines in a CSV file is to open it, update your line count, then close it.

CSV Output Count Example

Perl Script to Count Lines in CSV Files

Why was it Benchmarked?

A similar program was written in Python. Perl was about twice as fast. As this program was being run on very large CSV files, frequently, it was important to know which was faster.

Leave a Reply

Your email address will not be published. Required fields are marked *