in reply to Read the csv file to a hash....

The OP implies a desire to preserve order:

"I want to read this file to a hash such that i can access that data using the row count."

If that is the case a hash is not an appropriate repository.

I would think an array would be more appropriate.

<><

generator