in reply to FLAT FILE Pipedemimited

 What I'm doing wrong here...

You've named your variables poorly, the Text::CSV_XS object which has a getline method is called $fh, whereas your filehandle is called $csv