in reply to Can't locate object method

I'm familiar with fetchrow_array from DBI. I went to look at IO::File documentation and there was no reference to that method. The way you put it, it looks like you are trying to read rows from a database. Did you write this code from scratch or is it some copy paste of some come code that would do something similar to what you are looking for?